필터 지우기
필터 지우기

files managing (copy, move and write)

조회 수: 1 (최근 30일)
kimy
kimy 2021년 8월 1일
편집: Matt J 2021년 8월 1일
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