ワークスペースにある変数をfileの名前に設定したい
Mostrar comentarios más antiguos
質問失礼します。
uigetfileの関数を用いて取得したファイル名を、新しく作るファイルの名前に入れたいのですが、どのようにしたら良いのでしょうか。
matlabの経験が浅く初歩的な質問ですが回答していただけると嬉しいです。
[file,path] = uigetfile('*.csv')
% ファイルを選択して、切り抜く場所を選んでP1とおく。
C = readcell(file,'Range','B42:AW734');
%csvとしてフォルダに書き出す
writecell(C,'[「file」の変数の文字をいれたい] ttt.csv']);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre アプリの作成 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!