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