simple syntax problem need help "curly braces"
조회 수: 2 (최근 30일)
이전 댓글 표시
Im completely confused what matlab is doing here
Can someone tell me
I tried using help file but don't get what its talking about
A(2,1) = {[1 2 3; 4 5 6]}
What is this thing doing?
If i ask it what A is i get
ans =
[2x3 double]
How do i index A properly to get back to my data?
Is this making a structure of some sort? If i ask it was A(1,1) is it tells me the same answer
So what are the curly braces doing here? Thanks in advance
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 5월 1일
A{1} would get you back the 2 x 3 matrix.
댓글 수: 7
Image Analyst
2016년 5월 2일
Trust me - they're one of the most confusing variables in MATLAB. We see it here everyday with users not knowing how to use them. You know that's true. Maybe not complicated for us, but for new users they're complicated - the daily evidence speaks for itself.
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!