- #1
JoshHolloway
- 222
- 0
I want to graph the equation [tex] z = x^{2} + (xy) [/tex] in matlab, but I can't figure out how to do it.
Here is the code I am trying:
EDU>> [X,Y] = meshgrid(-10:.5:10);
EDU>> Z = X.^2 + X. * Y.;
EDU>> mesh(X,Y,Z, 'EdgeColor', 'black')
What am I doing wrong?
Here is the code I am trying:
EDU>> [X,Y] = meshgrid(-10:.5:10);
EDU>> Z = X.^2 + X. * Y.;
EDU>> mesh(X,Y,Z, 'EdgeColor', 'black')
What am I doing wrong?