how to move cursor to next line.

8 次查看(过去 30 天)
Using MATLAB how to move cursor to next line in text file. fprintf('\n') is not working. any other way?
  2 个评论
Manu MJ
Manu MJ 2011-6-9
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 2011-6-9
I don't understand what are you saying.

请先登录,再进行评论。

采纳的回答

Fangjun Jiang
Fangjun Jiang 2011-6-9
Follow this QA to see if it can help you.

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Data Import and Export 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by