How to Cell indexing
이전 댓글 표시
X1=11;
X2=22;
u{1}=[X1,X2];
>> u{1}
ans =
11 22
How to index 'one' element(ex: '11' or '22')
댓글 수: 1
Stephen23
2021년 9월 13일
@dmfwlansejr: Do you have a reason for storing a numeric vector inside a scalar cell array?
채택된 답변
추가 답변 (1개)
X1=11;
X2=22;
u{1}=[X1,X2];
u{1}
% To access "one" element
u{1}(1)
u{1}(2)
카테고리
도움말 센터 및 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!