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!