Copyfile with variable as destination

7 ビュー (過去 30 日間)
Bradley Robert
Bradley Robert 2019 年 5 月 29 日
コメント済み: Stephen23 2019 年 5 月 29 日
I am trying to copy a folder (A) in a directory, to the same directory with a variable as a name, but Matlab doesn't recognize the variable
Example:
saveName = 1234_fMRI
copyfile = *fMR* saveName
This creates a new folder in the directory called "saveName" where it needs to be a folder called 1234_fMRI
Help. Please.
Brad R.

採用された回答

Walter Roberson
Walter Roberson 2019 年 5 月 29 日
saveName = '1234_fMRI'
copyfile('*fMR*', saveName)
  1 件のコメント
Bradley Robert
Bradley Robert 2019 年 5 月 29 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by