string extraction from txt file
2 ビュー (過去 30 日間)
古いコメントを表示
Hi Matlab community!
I have a txt file which cointains n #rows and i want to extract the strings for each row with a for Cycle.
Importing the txt i have a textdata string like:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1005475/image.png)
so i'd like to extract, starting from row #2, the contents in column 2 for each row (in this case there's just 1 row i'm interested to).
Which is the best way to do it?
Many Many thanks to everyone!!
0 件のコメント
回答 (1 件)
Prabakar kg
2022 年 5 月 20 日
Please check readtable. This can help you read the data from txt and spreadsheet files as MATLAB table. Hope this helps!
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!