how can I insert comments into a multiline array creation?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Andrew Diamond
am 27 Dez. 2017
0 Stimmen
1 Kommentar
Fergil Mills
am 15 Jul. 2019
^ Agree w Andrew, thanks so much for posting this answer!
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!