Result ilaplace a number
Show older comments
Hi,
from this code:
a=55/4/sym('s^2');
b=ilaplace(a);
I got:
(55*t)/4
How can I get result like 13,75*t????
Thanks
Answers (2)
Azzi Abdelmalek
on 29 Jul 2013
double(coeffs(b))
5 Comments
john
on 30 Jul 2013
Azzi Abdelmalek
on 30 Jul 2013
Edited: Azzi Abdelmalek
on 30 Jul 2013
syms t
b=(-55*t+4*t^2+3*t^3+2+exp(t))/4
[ii,jj]=coeffs(b)
s=[]
for k=1:numel(ii)
s=[s sprintf(['%0.5g*' char(jj(k)) '+'],double(ii(k))) ]
end
s(end)=[]
s=regexprep(s,'+-','-')
s=regexprep(s,'*1','')
john
on 30 Jul 2013
Azzi Abdelmalek
on 31 Jul 2013
what do you mean?
john
on 1 Aug 2013
RahulTandon
on 7 Jul 2015
0 votes
a=55/4/sym('s^2'); b=ilaplace(a); vpa(b) % this will give you the complete answer!
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!