files managing (copy, move and write)

1 次查看(过去 30 天)
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.

采纳的回答

Matt J
Matt J 2021-8-1
编辑:Matt J 2021-8-1

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Biological and Health Sciences 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by