1つのCSVファイルを分割してインポート
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
吏玖 秋山
el 17 de En. de 2021
CSVファイルをインポートし解析をしたいのですが、データが全体のデータが20000ほどあり、これを1000データずつ読み込み解析したいと考えています。こちらのやり方が分かららず困っています。 ご指導して頂けると幸いです。
0 comentarios
Respuesta aceptada
Kojiro Saito
el 18 de En. de 2021
datastoreのReadSizeを1000にして、1チャンク毎に処理すれば良いと思います。
ds = datastore('mydata.csv', 'ReadSize', 1000);
while hasdata(ds)
t = read(ds); % 1000データずつの読み込み
% ここに1000データずつの解析
%
end
1 comentario
Más respuestas (0)
Ver también
Categorías
Más información sobre テキスト ファイル en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!