Hi PF!(adsbygoogle = window.adsbygoogle || []).push({});

I am trying to run the following plot:

k = .001;

figure;

hold on

[X,Y]=meshgrid(-4:0.01:4);

a = 5.56*10^14;

b = .15/(2*.143*10^(-6));

for n = 1:8

k = k*2^(n-1);

Z = a./(X.^2+Y.^2).*exp(b.*(X-sqrt(X.^2+Y.^2)))-k;

contour3(X,Y,Z)

end

which works great if a = b = 1. But now when the numbers are big, I'm not getting a good plot. Any ideas how to remedy this?

Thanks so much!

Josh

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

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

# MatLab Plot

Loading...

Similar Threads - MatLab Plot | Date |
---|---|

Matlab Plotting Coordinate Transformations in Matlab | Feb 12, 2018 |

Matlab Plotting animations (time-evolution) | Jan 17, 2018 |

Does anyone had this plotting problem with MATLAB? | Dec 23, 2017 |

Matlab Matlab's plot command | Nov 30, 2017 |

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

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