1つのCSVファイルを分割してインポート
19 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
CSVファイルをインポートし解析をしたいのですが、データが全体のデータが20000ほどあり、これを1000データずつ読み込み解析したいと考えています。こちらのやり方が分かららず困っています。 ご指導して頂けると幸いです。
0 Commenti
Risposta accettata
Kojiro Saito
il 18 Gen 2021
datastoreのReadSizeを1000にして、1チャンク毎に処理すれば良いと思います。
ds = datastore('mydata.csv', 'ReadSize', 1000);
while hasdata(ds)
t = read(ds); % 1000データずつの読み込み
% ここに1000データずつの解析
%
end
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su テキスト ファイル in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!