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

4 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2022-7-31
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.

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by