How to get an equation for a desired variable from a three variable equation using MATLAB?

1 次查看(过去 30 天)
clc; clear all;
syms x y u v psi
a = 0.5; b = -2; c = -1.5;
psi = a*x^3 + b*y + c*x % three variable equation
% In the above equation psi is dependent on x & y
% But I want to get an expression for y in terms of psi and x
% The solution should look like y = (psi - a*x^3 - c*x) / b

采纳的回答

David Hill
David Hill 2020-11-11
syms x y u v psi a b c;
eqn=psi == a*x^3 + b*y + c*x;
solve(eqn,y);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by