How can I import a single row from text file?
3 ビュー (過去 30 日間)
古いコメントを表示
I have a file which contains 1000 rows and 6908 column. It looks like this
3.490693e-02 3.604404e-02 3.532657e-02 8.249564e-05 8.572962e-05 8.369483e-05 3.631958e-05 3.830521e-05 3.705194e-05 1.016112e-04 1.060492e-04 1.032492e-04 4.740712e-05 4.949185e-05 4.817630e-05 1.0.....................
How Can i just import this line. At the later stage I need to plot the graphs. When I use importdata workspace, in value column, double/cell. Where should I get more information about this?
Thank you for the help
1 件のコメント
dpb
2018 年 8 月 8 日
Which row, specifically?
In general it's much simpler and probably faster to read the full file and do whatever selection is desired in memory.
採用された回答
Donato Foggetti
2018 年 8 月 8 日
編集済み: Donato Foggetti
2018 年 8 月 8 日
In these cases, I usually import the data into an Excel spreadsheet (the procedure is 99% automatic), then I import everything in MATLAB from the *.xlsx file: you can choose which rows and columns have to be imported and the type of variable. You can also automatically generate a script or function so that this procedure will be done just the first time.
I hope to have been helpful.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!