Matlab can not split the txt file.
3 ビュー (過去 30 日間)
古いコメントを表示
Hello
I have a text file which matlab can not split to different cell arrays using import data command.
Since I have many of these files I really do not know how to solve the issue, can anybody help? Thanks
I can bring the data to matlab arrays using the lines below:
- delimiterIn = ' ';
- headerlinesIn = 100;
- A = importdata(path,delimiterIn,headerlinesIn);
where path is the address I use to open the text file, but it takes all the data of a line to one cell array but I can not do any analysis on it.
Best regards
Saeed
0 件のコメント
回答 (2 件)
Walter Roberson
2012 年 12 月 12 日
textscan() with HeaderLines as appropriate, and format '%f%f%f%f%s%f%f'
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!