I want to graph the equation [tex] z = x^{2} + (xy) [/tex] in matlab, but I cant figure out how to do it.(adsbygoogle = window.adsbygoogle || []).push({});

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?

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Another Matlab Problem

Loading...

Similar Threads for Another Matlab Problem |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB Matlab-like software |

MATLAB Matlab data into bins |

**Physics Forums | Science Articles, Homework Help, Discussion**