Azzera filtri
Azzera filtri

how to move cursor to next line.

8 visualizzazioni (ultimi 30 giorni)
Manu MJ
Manu MJ il 9 Giu 2011
Using MATLAB how to move cursor to next line in text file. fprintf('\n') is not working. any other way?
  2 Commenti
Manu MJ
Manu MJ il 9 Giu 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 il 9 Giu 2011
I don't understand what are you saying.

Accedi per commentare.

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 9 Giu 2011
Follow this QA to see if it can help you.

Più risposte (1)

Walter Roberson
Walter Roberson il 9 Giu 2011
fprintf('%f %f %f\n', transpose(YourMatrix));

Categorie

Scopri di più su Data Import and Export in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by