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!