Hi,
I have got two problems with file operations.
(1) how to read data from a text file into a matrix from second line
txt file like this:
a b c d
1 2 3 3
5 6 6 7
I want to get x= [ 1 2 3 3; 5 6 6 7] for calculation from the text file.
(2) How to modify some real numbers in a text file and save it for another use.
txt file like this:
a
b
1.1
2.1
4.6
6.8
I want to modify these real numbers: 1.1 2.1 4.6 6.8 to other real numbers, say 2.1 3.0 8.0 9.2, and save these changes in this text file for running other program.
Thanks for your help!
Shark