Result ilaplace a number
Mostra commenti meno recenti
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
Risposte (2)
Azzi Abdelmalek
il 29 Lug 2013
double(coeffs(b))
5 Commenti
john
il 30 Lug 2013
Azzi Abdelmalek
il 30 Lug 2013
Modificato: Azzi Abdelmalek
il 30 Lug 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
il 30 Lug 2013
Azzi Abdelmalek
il 31 Lug 2013
what do you mean?
john
il 1 Ago 2013
RahulTandon
il 7 Lug 2015
0 voti
a=55/4/sym('s^2'); b=ilaplace(a); vpa(b) % this will give you the complete answer!
Categorie
Scopri di più su Calculus in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!