- #1
member 428835
Hi PF!
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
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