How can I change symbolic expression display format in command window

2 Ansichten (letzte 30 Tage)
garyatsch
garyatsch am 18 Mär. 2015
Beantwortet: Aider am 13 Sep. 2020
Now the output of symbolic expression in command window looks exactly the same as the expression after I use pretty() command, which means it is two dimensional. But I want the symbolic expression showing in one dimension. Does anyone know how to fix it?

Antworten (1)

Aider
Aider am 13 Sep. 2020
I am using version 2020a, and the results by default is displayed in one line. See code below.
syms x
>> 1/(x^2+5*x+1)
ans =
1/(x^2 + 5*x + 1)
>> pretty(1/(x^2+5*x+1))
1
------------
2
x + 5 x + 1

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by