live script when result is very long

5 ビュー (過去 30 日間)
Yi Mao
Yi Mao 2016 年 12 月 19 日
コメント済み: Davide Bassignana 2017 年 11 月 22 日
When I use the disp function in live script, when the result is very long, the output file (either pdf or html) won't be able to show the result correctly(not fit in one line, since there is no scroll bar). Is this a bug that Matlab does not auto shrink the result size to fit or is there some way to set the font size for disp function when in live script?
  2 件のコメント
Davide Bassignana
Davide Bassignana 2017 年 11 月 22 日
How can you split an output on multiple lines ? Or even use fprintf ? I have the very same problem, my live script has a very long symbolic output function and it doesn't fit the pdf page when exporting.

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

回答 (1 件)

Isabella Osetinsky-Tzidaki
Isabella Osetinsky-Tzidaki 2016 年 12 月 19 日
have you tried "xlswrite" command?
Just like this:
% instead of disp('X')
xlswrite('MyFile.xlsx','X')
  2 件のコメント
Yi Mao
Yi Mao 2016 年 12 月 19 日
By the way, writing the result to a separate file is not my intention. I want things to work in a similar way as publish .m file.

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

カテゴリ

Find more on MATLAB Report Generator in Help Center and File Exchange

製品

Community Treasure Hunt

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

Start Hunting!

Translated by