cellの最後の値の座標を求めたい
Show older comments
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 Comments
Atsushi Ueno
on 22 Oct 2022
「データの最後のcell」とは「csvファイル内の最後のデータ」という意味でしょうか?
周平
on 22 Oct 2022
Accepted Answer
More Answers (0)
Categories
Find more on モデルの入力と出力の準備 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!