How do I plot a contour map in Matlab?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
>> x=-6:0.001:6; >> y=-6:0.001:6; >> [X,Y]=meshgrid(x,y); >> phi=x.*y-y; >> contour(x,y,phi) Error using contour (line 48) Z must be at least a 2x2 matrix.
0 commentaires
Réponse acceptée
madhan ravi
le 10 Sep 2018
Modifié(e) : madhan ravi
le 10 Sep 2018
EDITED
x=linspace(-6,6,1000);
y=x;
[X,Y]=meshgrid(x,y)
phi=X.*Y-Y
contour(X,Y,phi)
5 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown 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!
