Why I get the error Index in position 2 exceeds array bounds (must not exceed 1).
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ryan Scott
am 8 Mai 2020
Bearbeitet: Ameer Hamza
am 8 Mai 2020
V = X(;,2)*0.028
File attached is X
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 8 Mai 2020
Bearbeitet: Ameer Hamza
am 8 Mai 2020
Try this
X = readmatrix('FinalProj_TVdata.csv');
V = X(:,2)*0.028;
Or this if you are using R2018b or earlier.
X = readtable('FinalProj_TVdata.csv');
V = X{:,2}*0.028;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!