How do I plot a contour map in Matlab?
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
cstibbards
il 10 Set 2018
Commentato: cstibbards
il 10 Set 2018
>> 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 Commenti
Risposta accettata
madhan ravi
il 10 Set 2018
Modificato: madhan ravi
il 10 Set 2018
EDITED
x=linspace(-6,6,1000);
y=x;
[X,Y]=meshgrid(x,y)
phi=X.*Y-Y
contour(X,Y,phi)
5 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
