output file text creation text wrap around

4 ビュー (過去 30 日間)
William
William 2013 年 1 月 28 日
回答済み: Chad Greene 2015 年 9 月 23 日
when creating text files in MATLAB is there a good way to deal with the "wrap around" ? I am exporting a list (1 - 512) and I am attempting to print the doc in a landscape format but the document keeps wrapping around. Is there a way to plan for this in the code?
Thanks
  1 件のコメント
Walter Roberson
Walter Roberson 2013 年 1 月 28 日
Could you explain further what you mean by "wrap around" ?

サインインしてコメントする。

回答 (3 件)

Jan
Jan 2013 年 1 月 28 日
The document does not perform any wrapping of the lines. This is a feature of the editor you open the text in and it can be controlled there. E.g. in the Windows Editor the wrapping cannot be disabled, in Wordpad you can decide for a mode, and Matlab's editor does not wrap the lines.
I do not understand, what a "list (1 - 512)" is. Do you want to insert a line break in the text after a certain column?

William
William 2013 年 1 月 28 日
The list 1-512 is referring to an array with 512 columns that is going on horizontally for about five pages. As of now text wraps around each line and I was hoping there was a formatting method to get the entire matrix X rows x 512 columns to wrap around as a group instead of individual lines.
Thanks

Chad Greene
Chad Greene 2015 年 9 月 23 日
wraptext may do the trick.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by