MATLAB Answers

How can I change the format of the answer?

3 views (last 30 days)
Postit123
Postit123 on 23 Nov 2020
Commented: Star Strider on 23 Nov 2020
I got the output of the inverse laplace like below.
How can I change this into the equation with the calculated values?
dphi_t =
(18231298392664843931137914740085*symsum(exp(t*root(s3^4 + (7222590806255583*s3^2)/1180591620717411303424 + 2261458668024229/309485009821345068724781056, s3, k))/(524288*(2361183241434822606848*root(s3^4 + (7222590806255583*s3^2)/1180591620717411303424 + 2261458668024229/309485009821345068724781056, s3, k)^3 + 7222590806255583*root(s3^4 + (7222590806255583*s3^2)/1180591620717411303424 + 2261458668024229/309485009821345068724781056, s3, k))), k, 1, 4))/288230376151711744 + 38685626227668131840*symsum((exp(root(s3^4 + (7222590806255583*s3^2)/1180591620717411303424 + 2261458668024229/309485009821345068724781056, s3, k)*t)*root(s3^4 + (7222590806255583*s3^2)/1180591620717411303424 + 2261458668024229/309485009821345068724781056, s3, k))/(524288*(2361183241434822606848*root(s3^4 + (7222590806255583*s3^2)/1180591620717411303424 + 2261458668024229/309485009821345068724781056, s3, k)^2 + 7222590806255583)), k, 1, 4)

  0 Comments

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 23 Nov 2020
Edited: Star Strider on 23 Nov 2020
I am not certain what you want.
Try the vpa funciton:
dphi = vpa(dphi, 5)
producing:
dphi =
(1.25e-7*s^2 + 2.0438e-13)/(s^4 + 6.1178e-6*s^2 + 7.3072e-12)
also:
ltx = latex(dphi)
produces:
or with a bit of editing:

  2 Comments

Postit123
Postit123 on 23 Nov 2020
Thank you! This is exactly what I want :)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!