From: Murat Ates on
Hi,

I have a simulation program that's written by a colleague. I need to run this simulation for different occasions by changing the input file which is input.dat. The program is written in Fortran and I don't know the details of it. input.dat is not a regular ASCII file and the number of columns in a row is different and it may contain numbers or strings or a combination with spaces.

I imported this input.dat to the MATLAB as a cell array. And I was able to change the lines that I want to change. However I am not able to save this changed cell array back to the input.dat in the same format.

I wonder the following points:

1) Is there a way to save this cell array to a .dat file? (I found a cell2csv function, I tried to modify it for .dat but I did not have any luck)
2) Is there a way to read only the lines that I want and change them and write back only those lines? (This is the alternative method that I thought may be possible)

Thanks for the any help,
- Murat
 | 
Pages: 1
Prev: MATLAB_arfima-figarch
Next: concatenate diagonals