I have a function defined as:
which I can visualise in 1D using:
r = -2:0.001:2;
a1 = 5;
I = a1 * exp(-2*(r).^2);
plot(r,I);
However, this function is radially symmetric, so I should be able to plot it in 2D and make it look like this:
How could I do this? I would like it to remain a plot of r (on the horizontal axes) against I(r).