I'm trying to read values from the file and store it as a matrix.In the file there is two line space between each matrix values, and each should store as separate matrix. suppose my file has the content,
File vector.mat 1.1 2.2 3.3 4.4 5.5 2.2 3.3 4.4 5.5 6.6 3.3 4.4 5.5 6.6 7.7 6.6 7.7 8.8 9.9 9.9 7.7 8.8 9.9 1.1 2.2 8.8 9.9 1.1 2.2 3.3
I want to read these values and stored as two matrix
A= [1.1 2.2 3.3 4.4 5.5 2.2 3.3 4.4 5.5 6.6 3.3 4.4 5.5 6.6 7.7]and B= [6.6 7.7 8.8 9.9 9.9 7.7 8.8 9.9 1.1 2.2 8.8 9.9 1.1 2.2 3.3]
Can any one give idea to implement this in matlab? Thanks in advance…..
Best Answer