フィルターのクリア

Saving newly created folder path in a variable

2 ビュー (過去 30 日間)
Sunny
Sunny 2018 年 9 月 21 日
編集済み: Stephen23 2018 年 9 月 21 日
Hello,
I created a folder using below code. Now I want to save the path of this new folder in other variable.
New_Folder = ['SubjectID_fig_',num2str(Subj_ID)];
mkdir('C:/Users/varunm1/Desktop/Assistments_Data/Confidence_MatFiles_Students_Labels/Results_Individual', New_Folder)
Expected output is a new variable 'New_Dir' should have C:/Users/varunm1/Desktop/Assistments_Data/Confidence_MatFiles_Students_Labels/Results_Individual/SubjectID_fig_1

採用された回答

Stephen23
Stephen23 2018 年 9 月 21 日
編集済み: Stephen23 2018 年 9 月 21 日
P = 'C:/Users/varunm1/Desktop/Assistments_Data/Confidence_MatFiles_Students_Labels/Results_Individual';
F = sprintf('SubjectID_fig_%d',Subj_ID);
mkdir(P,F)
new = fullfile(P,F)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by