Move files/entire folder in Matlab for non static source folders and .wavs files

23 Views Asked by At

I have to move multiple files or the entire folder from a user-choosen source folder to a destination folder, which could be fixed. The point is that that those files are non .txt files but .wavs, since are samples, and movefile just accept text scalar. Any help? This is my code:

`samp=[];
while length(samp)<270
    selpath=uigetdir(path,"Select the samples you want to use");
    lista=dir(selpath);
    justfiles = lista(~[lista.isdir]);
    list=struct2cell(justfiles);
    samp=[samp;list(1,:)'];    
end`

I've tried some solution like movefile or system but nothing worked (or I made mistakes). The system(move) didnt' work.

0

There are 0 best solutions below