データストアを使用し、CSVファイルの指定列、指定行のデータを抽出
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
matlab 2018aを使用しています。
CSVファイルの指定列のデータを抜き出したくてtabularTextDatastoreの
SelectedVariableNamesを使用しています。
さらに指定行のデータを抜き出したいと思ったのですがデータストアを使用して抽出すことはできるのでしょうか。
0 commentaires
Réponse acceptée
Kazuya
le 17 Nov 2018
読み取る行に関しては NumHeaderLines プロパティで読み飛ばす行数を設定するか、ReadSize で読み取る行数を決めるくらいしか手段がないですね。ファイルの特定の行だけを読み取るなら、この2つで何とかなりそうですが、どうでしょう?
Plus de réponses (1)
madhan ravi
le 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 commentaires
Voir également
Catégories
En savoir plus sur テキスト ファイル dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!