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
No products are associated with this question.
double(coeffs(b))
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/83464#comment_162191
Hm...but if:
b=(55*t+4*t^2+3*t^3+2+exp(t))/4;
thant I get: 0.5000 0.2500 13.7500 1.0000 0.7500
But how can I use this result? How can I connect individual result to the responding variable? Or how can I create result in form:
0.5+0.25*exp(t)+13.75*t+t^2+0.75*t^3
Thank you
http://www.mathworks.com/matlabcentral/answers/83464#comment_162203
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','')
http://www.mathworks.com/matlabcentral/answers/83464#comment_162207
[1, t] means always exp(t)?
http://www.mathworks.com/matlabcentral/answers/83464#comment_162266
what do you mean?
http://www.mathworks.com/matlabcentral/answers/83464#comment_162488
In variable "b" exist exp(t)/4...but result is 0.25*[1, t]....so [1, t] means always expression "exp(t)"?
Direct link to this answer:
http://www.mathworks.com/matlabcentral/answers/83464#answer_93033
Contact us
0 Comments