Info

此问题已关闭。 请重新打开它进行编辑或回答。

How can I modify a part of my text file

1 次查看(过去 30 天)
Izem
Izem 2020-9-7
关闭: Rik 2020-9-8
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 个评论
Rik
Rik 2020-9-8
You need to get my readfile function from the FEX or with the add-on explorer. Did you do that?
Izem
Izem 2020-9-8
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 ?

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by