cellの最後の値の座標を求めたい
Ältere Kommentare anzeigen
rangeでデータの範囲を指定したいのですが、データによって得たデータのサイズが異なり、cellの位置が変わるためうまくできません。解決法があるのであれば教えていただきたいです。よろしくおねがいします。
[file,path] = uigetfile('*.csv');
% ファイル名と拡張子を分割する
[~,name,ext] = fileparts(file);
% ファイルを選択して、切り抜く場所を選んでP1とおく。
C = readcell([path,file],'Range','B42:[データの最後のcellを入れたい]');
%csvとしてフォルダに書き出す
writecell(C,[name ' ttt' ext]);
2 Kommentare
Atsushi Ueno
am 22 Okt. 2022
「データの最後のcell」とは「csvファイル内の最後のデータ」という意味でしょうか?
周平
am 22 Okt. 2022
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu モデルの入力と出力の準備 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!