필터 지우기
필터 지우기

How can I import a csv with unknown dimension?

조회 수: 3 (최근 30일)
Johnny Birch
Johnny Birch 2018년 11월 29일
댓글: Johnny Birch 2018년 11월 29일
I have several *.csv files which I need to import. Each csv file should be imported as one cell array of strings. The problem is that the number of rows and columns can vary. How can i write a script which allow the import regardsless of the csv dimension?
Thanks

답변 (1개)

madhan ravi
madhan ravi 2018년 11월 29일
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html follow the instructions in the link use a cell array and mention the correct format which is csv
  댓글 수: 1
Johnny Birch
Johnny Birch 2018년 11월 29일
I am not sure what you mean. I dont have trouble importing several files in a loop. I have trouple making a script where you dont have to specify the number of rows and columns as these can vary between the files.

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

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by