フィルターのクリア

Rewrite a long symbolic fraction with fraction bars so it is more compact

5 ビュー (過去 30 日間)
Nathaniel Werner
Nathaniel Werner 2018 年 7 月 24 日
コメント済み: Stephan 2018 年 7 月 24 日
I have a symbolic output (see below) that is extremely long, and hard to identify when each set of parentheses begins and stops. Is it possible to rewrite this output so it looks similar (not identical) to a LaTeX or Word fractional equation with fraction bars?
-((T*a_1*sin((k*n*pi)/(z_1 - z_2))*(z_1 - z_2))/(n*pi) + (T*(z_1 - z_2)*(a_0*z_1 - a_0*z_2 - a_1*z_1 + a_1*z_2 - a_0*z_1*cos((k*n*pi)/(z_1 - z_2)) + a_0*z_2*cos((k*n*pi)/(z_1 - z_2)) + a_1*z_1*cos((k*n*pi)/(z_1 - z_2)) - a_1*z_2*cos((k*n*pi)/(z_1 - z_2))))/(k*n^2*pi^2))/(T*(z_1 - z_2))

採用された回答

Stephan
Stephan 2018 年 7 月 24 日
編集済み: Stephan 2018 年 7 月 24 日
Hi,
you can use:
pretty
to make it a bit easier reading the equations.
But i would suggest to open a new Live Script, copy the code containing the declaration of the symbolic variables and the equation and run it. Then you get the mathematical expression that you know from LATEX or others and can read your equations normally
Best regards
Stephan
  4 件のコメント
Nathaniel Werner
Nathaniel Werner 2018 年 7 月 24 日
I accepted the answer as soon as I checked to see if it worked...
Stephan
Stephan 2018 年 7 月 24 日
Im on vacation, maybe i had a bad internet connection... ;-)

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

その他の回答 (0 件)

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by