copyfileを用いたファイルのコピーにstrcatを用いる方法
Afficher commentaires plus anciens
複数のフォルダに同一ファイルをコピーしようと考え、以下のプログラムを作成したところ無効なオプションです。といったエラーが発生しました。 どのように修正をすれば、複数のフォルダを指定できるでしょうか。
select = 1; %0 HysOnebit 1 ditherOnebit 2 ditherHysOnebit 3 ditherHysCansOnebit 4 ditherCansOnebit
dither_value =[1/4 1/8 1/16 1/32 1/64];
gain = 0;
parfor i =1:length(dither_value)
now_dither = dither_value(1,i);
ditherfoldername = strcat('select','_',num2str(select),'_gain',num2str(gain),'_',num2str(now_dither));
copyfile ad* myFolder ditherfoldername
copyfile Onebit* myFolder ditherfoldername
copyfile input* myFolder ditherfoldername
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!