Index error in code
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to execute this code but it gives me an error Index exceeds array bounds.
I= [234, 112, 22, 56; 78, 81, 119, 121; 98 193 250 211; 33 135 199 201];
s=[110 45 32; 95 150 67; 89 76 55];
s2= s(I+1)
2 Kommentare
KSSV
am 18 Apr. 2020
What you are doing is wrong. You are trying to access more number of elements from s. What exactly you want to do?
Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!