Plot a function of two variables
Afficher commentaires plus anciens
I want to plot the function sin(4*pi*x)*sin(4*pi*y).
I tried the following but I am not sure if I am doing the right thing. Any help will be appreciated. Thanks
h = 2/11;
x = -1+h:h:1-h;
y = x;
[X,Y] = meshgrid(x,y);
z = @(x,y) sin(4*pi*x).* sin(4*pi*y); % Create Function
plot(x, z(X,Y))
2 commentaires
Cris LaPierre
le 13 Mar 2021
Modifié(e) : Cris LaPierre
le 13 Mar 2021
What are you trying to do? Describe that, and then we can tell you if you are doing the right thing.
SA
le 13 Mar 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Numerical Integration and Differentiation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
