how can I insert comments into a multiline array creation?
显示 更早的评论
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.
采纳的回答
更多回答(1 个)
Andrew Diamond
2017-12-27
0 个投票
1 个评论
Fergil Mills
2019-7-15
^ Agree w Andrew, thanks so much for posting this answer!
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!