hey pf!(adsbygoogle = window.adsbygoogle || []).push({});

i am trying to plot a contour (topographic) graph the following ##f(x,y) = \frac{1}{x^2+y^2} e^{x-(x^2+y^2)^{.5}}## where ##f(x,y) = k## where ##k = .001## and doubles in size for about 8 iterations. my attempt is here:

x=-3:0.25:3;

y=-3:0.25:3; z=.25:.25:1;

[X,Y]=meshgrid(x,y);

Z=1./(X.^2+Y.^2).*exp(X-(X.^2+Y.^2));

surfc(X,Y,Z); xlabel('x'); ylabel('y'); zlabel('z')

can someone please help me out?

thanks!

**Physics Forums - The Fusion of Science and Community**

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!

# Matlab contour plot

Tags:

Loading...

Similar Threads - Matlab contour plot | Date |
---|---|

Matlab Matlab -- how to make a smooth contour plot? | Jun 28, 2017 |

MATLAB - Contour plot | May 2, 2016 |

Filter command for contour plot MATLAB | Feb 24, 2014 |

How to plot MATLAB contour plots for a variable z dependent on x and y variables | May 28, 2012 |

Contour Plot in Matlab: DATA COLLECTED vs TIME in date and hours | Jul 5, 2011 |

**Physics Forums - The Fusion of Science and Community**