Unable to perform assignment because the left and right side have a different number of elements
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using radio button callbacks in app designer to change variable values, and then proceed to plot with those new variables. I keep getting different errors including the one stating "the left and right side have a different number of elements" and "matrix dimensions must agree", but then sometimes it works just fine.
I think the issue might be with the callback function definition because it is intended to only take in one value but maybe its doing more than one and thats why the dimensions dont line up? Im not sure but thanks in advance for any assistance.
댓글 수: 9
답변 (1개)
Mohsin Zubair
2021년 7월 8일
You can compare and see what I have changed as I have commented out unnecessary parts, also there's another problem that is you must select sections in last, also you must change value of intensity, cause if you don't change it, it will cause an error because you used a value change callback to set its value so if you don't change value then its value remains unset which gives an error as well, (for which I would suggest directly assigning value of intensity in RUN callback)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!