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!