I am not sure if this is what I'm supposed to be doing.
rng(1776);
x = (rand(300,1)-0.5)*6;
y = (rand(300,1)-0.5)*6;
[X,Y] = meshgrid(x, y);
Z = some function
contour(X,Y,Z)
How should my code be to make this correct?
axescontourmeshgridplotrandom
Best Answer