files managing (copy, move and write)

3 views (last 30 days)
kimy
kimy on 1 Aug 2021
Edited: Matt J on 1 Aug 2021
Hi,
Now I have a series of files but I don't know how to achieve my goal using Matlab since I am a definitely beginer. I have a folder called surface in which many folders are included, named by a time step (0.1, 0.2 ,0.3 .....). Of course, under each time step folder the data file (e.g. "0.1->patch_ground->scalarfiled->p") that I need is there, as you can recognise in the attchment, which is original data files that I output from an OPENFOAM code. First of all, I have to change the name of file "p" to "p.data" and copy/move the "p.data" file into the folder of each timestep ("0.1->p.data"). Then, I need to copy the file "p" already in the foler of "0.1" to every timestep folder (0.1, 0.2, 0.3....). I hope anybody can give me some tips, thanks a lot.

Accepted Answer

Matt J
Matt J on 1 Aug 2021
Edited: Matt J on 1 Aug 2021

More Answers (0)

Categories

Find more on Biological and Health Sciences in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!