Info

This question is closed. Reopen it to edit or answer.

Question about syms

10 views (last 30 days)
Camilo Lasso
Camilo Lasso on 2 May 2011
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi, hey im trying to operate with a symbolic expression, but i have this problem:
cpcb=-7.206e-5 syms t
cpcb*t
ans =
-(5317089511806041*tsymb)/73786976294838206464
I need the data from the operation but i dont need in such a weird/cmplex view. Is there any way to show the symbolic operation as -7.206e-5*tsymb??? Thx

Answers (2)

Walter Roberson
Walter Roberson on 2 May 2011
  1 Comment
Paulo Silva
Paulo Silva on 2 May 2011
This is just in case Camilo wants the value in that exact form
a=sym2poly(vpa(cpcb*t))
format short
a(1) %this is the value -7.206e-5

Camilo Lasso
Camilo Lasso on 2 May 2011
Hey thx thats exactly what i was looking for

Tags

Community Treasure Hunt

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

Start Hunting!