how can I insert comments into a multiline array creation?
Mostrar comentarios más antiguos
This works
>> p = [...
%%%BEGIN ENTRIES %%%
'a1;', ...
'b;', ...
'c;'
]
p =
a1;b;c;
but commenting out the 'b' line doesn't
p = [...
%%%BEGIN ENTRIES %%%
'a1;', ...
% 'b;', ...
'c;'
]
Dimensions of matrices being concatenated are not consistent.
Respuesta aceptada
Más respuestas (1)
Andrew Diamond
el 27 de Dic. de 2017
0 votos
1 comentario
Fergil Mills
el 15 de Jul. de 2019
^ Agree w Andrew, thanks so much for posting this answer!
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!