moving files from one folder to an other
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Habtamu Tesfaw
am 8 Mär. 2019
Bearbeitet: dpb
am 8 Mär. 2019
Given two folder A ansd B as shown;
A='/media/my_name/data'
B='/media/my_name/moved_files'
first I read files in path A as shown below
f_raw=dir(fullfile(A,'*.mat'));
now I want to move the 10th file in path A to path B.
I tried it in the ff way but ends up with error,
movefile(A/f_raw(10).name,B)
How can I move this file to path B by using scripts given above ?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Standard File Formats finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!