Clear Filters
Clear Filters

Finding function for x in f(x,y,z)=0 and plotting it in 3d phase space

4 views (last 30 days)
Hi, we have a function f(x,y,z)=0, could you please tell me how we can find a function for x which means x=g(y,z) and the second question is how we can plot this g(y,z) in a 3d plot?
Thanks in advance for any help.

Accepted Answer

Walter Roberson
Walter Roberson on 31 Jul 2022
Generally speaking, that is not always possible. Or sometimes it is only approximately possible.
If you have the symbolic toolbox, then you can define f(x,y,z) and then you can attempt
g = solve(f(x,y,z), x)
If you manage to get a solution, then you could try
fsurf(g, [y_lowerbound y_upperbound z_lowerbound z_upperbound])
xlabel('y'); ylabel('z'); zlabel('x')
where y_lowerbound y_upperbound z_lowerbound z_upperbound are numeric values that give the bounds of the region you want to plot.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!