Effacer les filtres
Effacer les filtres

How do i copy the content of a folder into another folder.

6 vues (au cours des 30 derniers jours)
Daniel Boateng
Daniel Boateng le 12 Mar 2019
I have a folder with 5 matfiles and I want to copy these matfiles into an empty folder I have created . Please how do i go about it. Thank you

Réponse acceptée

Sean de Wolski
Sean de Wolski le 12 Mar 2019
doc copyfile
doc dir
doc fullfile
Use dir to get the file name and current path, fullfile to build the old and new full file paths and copyfile to copy them one at a time in a loop.

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by