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.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Cd(a)=[ 0 0 0 0 .5 .10 1 .15 .20];
0 Kommentare
Antworten (1)
Walter Roberson
am 16 Sep. 2018
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 Kommentare
Siehe auch
Kategorien
Mehr zu Map Display finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!