more convenient way to present a result of a symbolic calculation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Eliraz Nahum
am 4 Nov. 2018
Kommentiert: madhan ravi
am 4 Nov. 2018
hello everyone,
is there a more convenient/elegant way of presenting the result? I am adding the code:
clear all
close all
clc
syms t y(t) b m k w
dsolve(diff(y,t,2)+(k/m)*y==(1/m)*cos(w*t))
I am attaching a photo in which we can see the desirable way of presentation I am interested in.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193848/image.jpeg)
thanks!
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 4 Nov. 2018
Bearbeitet: madhan ravi
am 4 Nov. 2018
Use
pretty(sol)
Or if you use live editor you can see the result like the one in your question
5 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!