Plotting Multivariable function poltting

 Risposta accettata

[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)
You should avoid including 0 within the grid boundary since it creates a singularity.
Also read about;
https://www.mathworks.com/help/matlab/learn_matlab/plots.html

Più risposte (2)

Dirk Herschberger
Dirk Herschberger il 17 Set 2020
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)
MORAM
MORAM il 20 Ott 2023
[X,Y] = meshgrid(1:.2:10);
Z =(X*Y) / (X^2 + Y^2);
surf(X,Y,Z)

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by