I keep receiving this error. Unable to perform assignment because the indices on the left side are not compatible with the size of the right side. What does this mean? I am going to use the values in this array in a for loop which I am going to plot.
조회 수: 2 (최근 30일)
이전 댓글 표시
Cd(a)=[ 0 0 0 0 .5 .10 1 .15 .20];
댓글 수: 0
답변 (1개)
Walter Roberson
2018년 9월 16일
For that to work, variable a would have to be a vector of 9 positive integral values, or else a would have to be logical and have 9 locations that were true.
Note that if you are using Octave (the wording of the error message is not what MATLAB would use) then the rules could potentially be different.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Map Display에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!