I have the following code that works to build an xy slice of the Hydrogen 2pz orbit:
%probability densities pd_psi_210 = @(r,theta,phi) exp(-r).*(r.^2).*(cos(theta).^2)/(32*pi); %configuring the range [xyz] = meshgrid(-10:.1:10,-10:.1:10,-2:.1:2); [THETA,PHI,R] = cart2sph(x,y,z); %create array of probability density magnitudes psi_210_vals = pd_psi_210(R,THETA,PHI); %plotting imagesc(psi_210_vals(:,:,1)); %xy plane
I would like to plot a three-dimensional contour of the orbit. I tried this (and it seems I don't like it):
isosurface(psi_210_vals(:,:,:)); %3D contour
How can I make this work?
source share