1つのCSVファイルを分割してインポート
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
吏玖 秋山
am 17 Jan. 2021
Bearbeitet: 吏玖 秋山
am 18 Jan. 2021
CSVファイルをインポートし解析をしたいのですが、データが全体のデータが20000ほどあり、これを1000データずつ読み込み解析したいと考えています。こちらのやり方が分かららず困っています。 ご指導して頂けると幸いです。
0 Kommentare
Akzeptierte Antwort
Kojiro Saito
am 18 Jan. 2021
datastoreのReadSizeを1000にして、1チャンク毎に処理すれば良いと思います。
ds = datastore('mydata.csv', 'ReadSize', 1000);
while hasdata(ds)
t = read(ds); % 1000データずつの読み込み
% ここに1000データずつの解析
%
end
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu テキスト ファイル finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!