How to plot a 2d potential function
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MatlabEnthusiast
le 27 Fév 2019
Commenté : MatlabEnthusiast
le 27 Fév 2019
Hi all. Today I came across a function f(X,Y) = cos(2*pi*X)(1+3Y) + ((2*pi*y)^2)/2.
I thought this was a 3d function but apparently it's not. How do i plot this 2D function in MATLAB.
Is there a special function for handling potential functions in MATLAB? thank you very much
0 commentaires
Réponse acceptée
Stephan
le 27 Fév 2019
Modifié(e) : Stephan
le 27 Fév 2019
f = @(X,Y) cos(2*pi.*X).*(1+3.*Y) + ((2*pi.*Y).^2)/2
fsurf(f)
3 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Performance dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!