ワークスペースにある変数をfileの名前に設定したい
Show older comments
質問失礼します。
uigetfileの関数を用いて取得したファイル名を、新しく作るファイルの名前に入れたいのですが、どのようにしたら良いのでしょうか。
matlabの経験が浅く初歩的な質問ですが回答していただけると嬉しいです。
[file,path] = uigetfile('*.csv')
% ファイルを選択して、切り抜く場所を選んでP1とおく。
C = readcell(file,'Range','B42:AW734');
%csvとしてフォルダに書き出す
writecell(C,'[「file」の変数の文字をいれたい] ttt.csv']);
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!