how can I insert comments into a multiline array creation?
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Andrew Diamond
il 27 Dic 2017
0 voti
1 Commento
Fergil Mills
il 15 Lug 2019
^ Agree w Andrew, thanks so much for posting this answer!
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!