Solve for laplace transformed equation
Show older comments

I tried solve the equation which was laplace transformed.
But it is very simple to solve, It can't solve the equation. Because of the equation is explicit.
It can solve just move -5Y(s) term which is contained right side hand to left side hand and divide by s+5 to both side hands.
But matlab can't solve that.
I'm using ipad matlab. How can I solve this problem?
Answers (1)
Walter Roberson
on 2 Jan 2020
syms y
solve(subs(eq, Y, y), y)
2 Comments
junhee choi
on 3 Jan 2020
Walter Roberson
on 3 Jan 2020
Either way, you progress by substituting a symbolic name that is not a function for the expression that you want to solve for, and then you solve() for that name.
If for some reason that is not acceptable, then you will need to drop into the symbolic engine:
>> syms Y(s); eq = s*Y(s) == 10/(s+10) - 5*Y(s); Ysol = feval(symengine, 'solve', eq, Y)
Ysol =
piecewise(s == -5, {}, s ~= -5, {10/((s + 5)*(s + 10))})
Note that this is not a normal piecewise(): this is the representation of an internal MuPAD object.
Categories
Find more on Common Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!