Result ilaplace a number
Ältere Kommentare anzeigen
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
Antworten (2)
Azzi Abdelmalek
am 29 Jul. 2013
double(coeffs(b))
5 Kommentare
john
am 30 Jul. 2013
Azzi Abdelmalek
am 30 Jul. 2013
Bearbeitet: Azzi Abdelmalek
am 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
am 30 Jul. 2013
Azzi Abdelmalek
am 31 Jul. 2013
what do you mean?
john
am 1 Aug. 2013
RahulTandon
am 7 Jul. 2015
0 Stimmen
a=55/4/sym('s^2'); b=ilaplace(a); vpa(b) % this will give you the complete answer!
Kategorien
Mehr zu Calculus finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!