why it will go wrong using 'cell'?
이전 댓글 표시
Recently, I ran two codes as follow:
a={[],[]};a{1}(a{1}==3)=[];
% it will go wrong
b=cell(1,2);b{1}(b{1}==3)=[];
댓글 수: 2
The difference is the space allocated for each.
a={[],[]};
b=cell(1,2);
whos a b
warnerchang
2022년 3월 31일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!