Result ilaplace a number
显示 更早的评论
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
回答(2 个)
Azzi Abdelmalek
2013-7-29
double(coeffs(b))
5 个评论
john
2013-7-30
Azzi Abdelmalek
2013-7-30
编辑:Azzi Abdelmalek
2013-7-30
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
2013-7-30
Azzi Abdelmalek
2013-7-31
what do you mean?
john
2013-8-1
RahulTandon
2015-7-7
0 个投票
a=55/4/sym('s^2'); b=ilaplace(a); vpa(b) % this will give you the complete answer!
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!