データストアを使用し、CSVファイルの指定列、指定行のデータを抽出
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
matlab 2018aを使用しています。
CSVファイルの指定列のデータを抜き出したくてtabularTextDatastoreの
SelectedVariableNamesを使用しています。
さらに指定行のデータを抜き出したいと思ったのですがデータストアを使用して抽出すことはできるのでしょうか。
0 Commenti
Risposta accettata
Kazuya
il 17 Nov 2018
読み取る行に関しては NumHeaderLines プロパティで読み飛ばす行数を設定するか、ReadSize で読み取る行数を決めるくらいしか手段がないですね。ファイルの特定の行だけを読み取るなら、この2つで何とかなりそうですが、どうでしょう?
Più risposte (1)
madhan ravi
il 17 Nov 2018
Read the while file using readtable() and then you can simply specify as such
T=readtable('mycsv.csv');
T.column %where T is your table and columns is the specific column you need
2 Commenti
Vedere anche
Categorie
Scopri di più su テキスト ファイル in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!