Info

This question is closed. Reopen it to edit or answer.

How can I modify a part of my text file

1 view (last 30 days)
Izem
Izem on 7 Sep 2020
Closed: Rik on 8 Sep 2020
Hello everyone,
I have a .dat file like in the picture and I would like to modify I3 values (the last column). I want to replace the values by (old values+Delta(m,n)) .
I can't use textscan since the beginning of the file has a different format. Do you have any idea on how can I do this ?
  11 Comments
Rik
Rik on 8 Sep 2020
You need to get my readfile function from the FEX or with the add-on explorer. Did you do that?
Izem
Izem on 8 Sep 2020
I don't know what FEX or add-on explorer mean, can you please just tell me how can I store data and write it back after using textscan as in my previous comment.
what you did last time : 'str=data{n};' was not working
So do you have any idea how can I do it ?

Answers (0)

Community Treasure Hunt

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

Start Hunting!