Why I get the error Index in position 2 exceeds array bounds (must not exceed 1).
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
V = X(;,2)*0.028
File attached is X
0 Commenti
Risposta accettata
Ameer Hamza
il 8 Mag 2020
Modificato: Ameer Hamza
il 8 Mag 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!