Just read one column
1 回表示 (過去 30 日間)
古いコメントを表示
Helo, i want to ask about read csv in matlab.
I use the code :
[a,b,c] = xlsread('104.csv');
in that csv has 15 columns with 30000 rows
.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219477/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219477/image.png)
But why matlab just running only first column like this ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219478/image.png)
Is that something wrong with my code ? its just simply code but why that codes shows only 1 columns?
1 件のコメント
Star Strider
2019 年 5 月 14 日
My guess is that everything in your ‘104.csv’ file are saved as characters (or strings), rather than as numeric data. That is likely the reason there is nothing in that ‘a’ output from xlsread, while the second (text) and third (raw) outputs have everything.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で EEG/MEG/ECoG についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!