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!