Just read one column

조회 수: 1 (최근 30일)
Tsalsabilla Winny Junika
Tsalsabilla Winny Junika 2019년 5월 14일
댓글: Star Strider 2019년 5월 14일
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
.
But why matlab just running only first column like this ?
Is that something wrong with my code ? its just simply code but why that codes shows only 1 columns?
  댓글 수: 1
Star Strider
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 CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by