I have a csv with the following rows:
20170930,Ben,10777.785005,6221.201572,1924.805677,1626.732719,614.706354,390.338683,471,19,264,18,23,29.289600,5.318191
20170930,Carlos,10143.669919,6643.782529,1627.648047,1200.392359,447.719338,224.127646,420,20,305,27,17,30.335400,5.169949
20170930,Tommy,8950.225298,6162.109701,1394.045232,958.651623,280.330558,155.088184,288,16,223,25,8,28.056600,5.148149
I used the delimiter:
formatSpec = '%f%s%f%f%f%f%f%f%f%f%f%f%f%f%f';
Now, how can I get an output organized by rows and columns??

댓글 수: 1

dataArray = textscan(fileID, formatSpec, endRow(1)-startRow(1)+1, 'Delimiter', delimiter, 'EmptyValue' ,NaN,'HeaderLines', startRow(1)-1, 'ReturnOnError', false);

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Signal Processing Toolbox에 대해 자세히 알아보기

질문:

2017년 10월 5일

편집:

2017년 10월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by