more convenient way to present a result of a symbolic calculation

1 回表示 (過去 30 日間)
Eliraz Nahum
Eliraz Nahum 2018 年 11 月 4 日
コメント済み: madhan ravi 2018 年 11 月 4 日
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!

採用された回答

madhan ravi
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
  5 件のコメント
Eliraz Nahum
Eliraz Nahum 2018 年 11 月 4 日
thanks
madhan ravi
madhan ravi 2018 年 11 月 4 日
Anytime :)

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

その他の回答 (1 件)

Eliraz Nahum
Eliraz Nahum 2018 年 11 月 4 日
for some reason I don't get the desired result. the result I got:
the right result (by wolfram):
any recommendations? maybe something in the syntax is wrong?

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by