ワークスペースにある変数をfileの名前に設定したい
Afficher commentaires plus anciens
質問失礼します。
uigetfileの関数を用いて取得したファイル名を、新しく作るファイルの名前に入れたいのですが、どのようにしたら良いのでしょうか。
matlabの経験が浅く初歩的な質問ですが回答していただけると嬉しいです。
[file,path] = uigetfile('*.csv')
% ファイルを選択して、切り抜く場所を選んでP1とおく。
C = readcell(file,'Range','B42:AW734');
%csvとしてフォルダに書き出す
writecell(C,'[「file」の変数の文字をいれたい] ttt.csv']);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur アプリの作成 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!