Rename file when using copyfiile

69 ビュー (過去 30 日間)
Marisabel Gonzalez
Marisabel Gonzalez 2018 年 11 月 18 日
コメント済み: madhan ravi 2018 年 11 月 18 日
Hello, I would like to rename a file that I've just succesfully copied. The basic code is the following
filename = 'myfilename.dat'
source = fullfile('mysourcepath',filename)
destiantion = fullfile('mydestinationpath',filename)
copyfile(source,destination)

採用された回答

madhan ravi
madhan ravi 2018 年 11 月 18 日
  4 件のコメント
Marisabel Gonzalez
Marisabel Gonzalez 2018 年 11 月 18 日
I also tried that and still got the error. However, I managed to rename it using copyfile again. Thanks anyway!
madhan ravi
madhan ravi 2018 年 11 月 18 日
Anytime :)

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by