Result ilaplace a number
Afficher commentaires plus anciens
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
Réponses (2)
Azzi Abdelmalek
le 29 Juil 2013
double(coeffs(b))
5 commentaires
john
le 30 Juil 2013
Azzi Abdelmalek
le 30 Juil 2013
Modifié(e) : Azzi Abdelmalek
le 30 Juil 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
le 30 Juil 2013
Azzi Abdelmalek
le 31 Juil 2013
what do you mean?
john
le 1 Août 2013
RahulTandon
le 7 Juil 2015
0 votes
a=55/4/sym('s^2'); b=ilaplace(a); vpa(b) % this will give you the complete answer!
Catégories
En savoir plus sur Calculus dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!