MATLAB: How to use matlab to solve this function solve Hello, I have the following function and I already solved it , but I want to use Maltab to show these step What function should I use ? Thanh you !!! Best Answer syms x(t) y(t)d = sqrt(x^2+y^2)d(t) = d__prime = simplify(diff(d,t))d__prime(t) = syms x__prime y__primeL = simplify(subs(subs(d__prime, {diff(x(t),t), diff(y(t),t)}, {x__prime, y__prime}), {x(t),y(t)}, {4*sqrt(2), 4*sqrt(2)}))L(t) = eqn = subs(L, x__prime, -8) == -7*sqrt(2)eqn(t) = answer = y__prime == solve(eqn, y__prime)answer = However, you cannot get from there to y = -6 as you are given that Related SolutionsMATLAB: Second order differential equation syms c positivesyms g negativeeqn = diff(y(t),t,2)== g+(c*(diff(y(t),t))*(diff(y(t),t)));cond = [y(0) == 1000, diff(y(0),t) == 0];ySol(t) = dsolve(eqn, cond)MATLAB finds four solutions. MATLAB: Solve for a variable in terms of specific other variables syms x(t) y(t) eq1 = x == y+2; deq = diff(eq1)deq(t) = isolate(deq, diff(y))ans = subs(ans, diff(x),5)ans = Related QuestionIn Symbolic Math, how do you output a partial derivative as a variableHow to expose a symbol from an equation? I have Symbolic Math Toolbox, if it is necessarySolving two symbolic equations simultaneouslyLeast squares Exponential fit using polyfit
Best Answer