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

5 vues (au cours des 30 derniers jours)
M
M le 31 Juil 2022
Commenté : M le 31 Juil 2022
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.

Réponse acceptée

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

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by