transpose_structure

transpose_structure(s) transposes all the fields in the structure. useful for later cat(1,s.field)

Ahora está siguiendo esta publicación

Users that often use cat(1,s.field) find annoying that this function generates error if the field is in different orientation (row or column vector). Instead of try ... catch, it's suggested to use transpose_structure(s).

>> s = struct('x',ones(10,1),'y',zeros(5,1));
>> s = transpose_structure(s)

Citar como

Alex Liberzon (2026). transpose_structure (https://es.mathworks.com/matlabcentral/fileexchange/40142-transpose_structure), MATLAB Central File Exchange. Recuperado .

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.1.0.0

replaced length() by numel()

1.0.0.0