Hi everyone,

I am trying for reading and writing a text file (a notepad file with 44 lines) in Matlab. I want to read only lines 2 to 44 of the attached picture (my notepad file) in Matlab and change the value of there into a constant number(e.g. 4 for all value) and again write they (changed lines 2 to 44) into my notepad file instead of their previous values.

how can do it?

If you have any idea, please share it with me.

Thank you for your any suggestion.

The Best;

Azade

Similar questions and discussions