how to move cursor to next line.

Using MATLAB how to move cursor to next line in text file. fprintf('\n') is not working. any other way?

2 Kommentare

Manu MJ
Manu MJ am 9 Jun. 2011
once if I read the text data i am suppose to read it in matrix format only. But now what ever i reads it is coming in single column.
For e.g.
i should write the data to text file as
1 2 3
1 2 3
like this continuously
While reading i should read as i specified above.
Fangjun Jiang
Fangjun Jiang am 9 Jun. 2011
I don't understand what are you saying.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 9 Jun. 2011

0 Stimmen

Follow this QA to see if it can help you.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 9 Jun. 2011

0 Stimmen

fprintf('%f %f %f\n', transpose(YourMatrix));

Kategorien

Mehr zu Data Import and Export finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by