modify a data file using MATLAB?
Mostrar comentarios más antiguos
Hi guys,
I am a beginner of MATLAB. Now I have a series of data files output from Openfoam, in terms of different time step (shown in floowing figure). A

and under each folder I have the data included in the file like below. However I only need the column of x and p for each file.

I would like to integrate the files in one separate file and add a second colum between x and p, by t (t=0.5, 1, 1.5 ....)., shown in following format. I have no experience of modyfing a file. Could you please give me some tips, thanks a lot.
%x t value
0 0.5 3000
1 0.5 3200
...
20 30 3690
2 comentarios
Mathieu NOE
el 28 de Jun. de 2021
hello
could you share some of the data file ?
tx
kimy
el 28 de Jun. de 2021
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Cell Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!