live script when result is very long
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Adam
am 19 Dez. 2016
Can you not just split it over multiple lines? Reducing the font size is not all that practical in a generic case where it may have to become infeasibly small to fit a whole line on.
Davide Bassignana
am 22 Nov. 2017
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.
Antworten (1)
Isabella Osetinsky-Tzidaki
am 19 Dez. 2016
have you tried "xlswrite" command?
Just like this:
% instead of disp('X')
xlswrite('MyFile.xlsx','X')
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!