Why I get the error Index in position 2 exceeds array bounds (must not exceed 1).
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
V = X(;,2)*0.028
File attached is X
0 commentaires
Réponse acceptée
Ameer Hamza
le 8 Mai 2020
Modifié(e) : Ameer Hamza
le 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!