??? Subscripted assignment between dissimilar structures.
이전 댓글 표시
I am using a structure in my script m-file. Everytime I run my code, I get the following error:
??? Subscripted assignment between dissimilar structures.
To run the code, I clear all the variables and then re-run the code. This way I don't get the error. Is there something that I am missing?
Thanks.
채택된 답변
추가 답변 (2개)
Matt Fig
2011년 6월 12일
0 개 추천
It sounds like you are running a script instead of a function? If so, my guess is that with a clear workspace your code creates some variables, but these creation assignments don't work right when the variables are built up by the code if run again without a clear workspace. This is the best I can do without seeing the code...
Marine
2014년 11월 24일
0 개 추천
I have actually the same mistake as AP, but the point is that when I test me structures, they are supposed to be the same in the program, and I really don't know why I got this message. One of my structure comes from a .mat-file, and the other is describe in my script... Can anybody help me please ?
댓글 수: 1
Matt J
2014년 11월 24일
What about Jan's answer, recommending dbstop? What does that reveal?
카테고리
도움말 센터 및 File Exchange에서 Other Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!