open large csv file
4 ビュー (過去 30 日間)
古いコメントを表示
i have a csv file with 93 coloums and 150000 rows
number of coloums may change to 90 in some tests and all entries are text / string
i need a single code to calculate the no of rows and couloums dynamically by reading the csv file and then get the 93/90 variable data in seprate variables
i have been using uiimport in my GUI but when i compiled the code into an application (.exe) using matlab application compiler uiimport function gives following error
"Error using uiimport>showLargeFileWindow (line 1126)
Java exception occurred:
java.lang.NullPointerException
at com.mathworks.mlwidgets.importtool.TextImportClient.showWaitProgressWindow(TextImportClient.java:253)"
Now i am using
fid=fopen('1.csv');
>> data = textscan(fid,'%s','HeaderLines',0,'Delimiter',',','CollectOutput',1);
now i am getting all the data in i single variable data
can any body help me for opening this csv file in standalone application with each variable having its values stored
First row are the variable names
0 件のコメント
回答 (1 件)
Nicolas B.
2019 年 8 月 29 日
2 件のコメント
Nicolas B.
2019 年 8 月 29 日
I would say that you have 1 header missing. Try to open your csv-file in libreoffice or excel and check whether there are headers to each column. If you cannot correct that, read the file without headers.
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!