Why I get the error Index in position 2 exceeds array bounds (must not exceed 1).
1 回表示 (過去 30 日間)
古いコメントを表示
V = X(;,2)*0.028
File attached is X
0 件のコメント
採用された回答
Ameer Hamza
2020 年 5 月 8 日
編集済み: Ameer Hamza
2020 年 5 月 8 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!