Unable to use a value of type string as an index
조회 수: 7 (최근 30일)
이전 댓글 표시
Where even is the string? I checked the datatypes of all the variables, and they're all either double or uint8.
댓글 수: 3
VBBV
2021년 10월 23일
Did you assign any numeric value to x in catbl1(catbl1=x)=div*c; ? Change also the line to catbl1(catbl1==x)=div*c;
답변 (1개)
Scott MacKenzie
2021년 10월 23일
Inside your loop, change
catbl1(catbl1=x)=div*c;
to
catbl1(catbl1==x)=div*c;
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!