matlab_ファイルの移動とコピー
1262 ワード
clear
clc
cd('C:\Documents and Settings\Administrator\ \matlab\test'); %
% test : 1, 2, 1.txt, 2.txt
movefile('1.txt', '11.txt'); % 1.txt 11.txt(1.txt ),
copyfile('2.txt', '22.txt'); % 2.txt 22.txt(2.txt )
movefile('11.txt', '1'); % 11.txt 1
copyfile('22.txt', '2'); % 22.txt 2