フィルターのクリア

How to copy file with index start from 079

1 回表示 (過去 30 日間)
Med Future
Med Future 2022 年 2 月 3 日
回答済み: KSSV 2022 年 2 月 3 日
Hi i have the file name frameTest078.mat i want to make 10 copies of this file name as starting from frameTest079, frameTest080. I have used the following code but it does not same in frameTest079.mat . I have attached the file
for k=1:10 file=sprintf('frameTest%03d.mat',k) copyfile('frameTest078.mat',file); end

回答 (1 件)

KSSV
KSSV 2022 年 2 月 3 日
MAy be you are looking for:
for k=79:89
file=sprintf('frameTest%03d.mat',k) ;
copyfile('frameTest078.mat',file);
end

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by