more convenient way to present a result of a symbolic calculation
1 次查看(过去 30 天)
显示 更早的评论
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.
thanks!
0 个评论
采纳的回答
madhan ravi
2018-11-4
编辑:madhan ravi
2018-11-4
Use
pretty(sol)
Or if you use live editor you can see the result like the one in your question
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!