how can I insert comments into a multiline array creation?
Show older comments
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.
Accepted Answer
More Answers (1)
Andrew Diamond
on 27 Dec 2017
0 votes
1 Comment
Fergil Mills
on 15 Jul 2019
^ Agree w Andrew, thanks so much for posting this answer!
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!