How do I plot an Inverse Laplace? (symbolic to vectorized equations)
Show older comments
I am having trouble plotting the following inverse Laplace functions. Not sure what I am doing wrong.
syms s t
F1 = (6*s + 18)/(s^4 + 6*s^3 + 11*s^2 + 24*s);
F2 = (12*s + 36)/(s^4 + 6*s^3 + 11*s^2 + 42*s);
F3 = (18*s + 54)/(s^4 + 6*s^3 + 11*s^2 + 60*s);
F4 = (24*s + 72)/(s^4 + 6*s^3 + 11*s^2 + 78*s);
t1 = ilaplace(F1); t2 = ilaplace(F2);
t3 = ilaplace(F3); t4 = ilaplace(F4);
fplot(matlabFunction(t1);
Any Help would be greatly appreciated. Thanks.
2 Comments
VBBV
on 19 Oct 2020
Edited: Walter Roberson
on 19 Oct 2020
You missed a parenthesis on right )
fplot(matlabFunction(t1))
Walter Roberson
on 19 Oct 2020
Yes, but even if you provide that, matlabFunction() is going to give an error
Error using symengine
Code generation failed due to unexpected object of type 'RootOf'.
Error in sym/matlabFunction>mup2mat (line 404)
res = mupadmex('symobj::generateMATLAB',r.s,ano,spa,0);
Error in sym/matlabFunction>mup2matcell (line 374)
r = mup2mat(c{1},true,sparseMat);
Error in sym/matlabFunction (line 188)
body = mup2matcell(funs, opts.Sparse);
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



