I am plotting the antenna pattern in a 3D plot where two axis are representing the theta and phi coordinates. Now I would like to change the plot in order to be able to have real 3D plot in the xyz coordiantes system,
I tried to use the sph2cart function, but I am getting weird results.
Can someone help me please?
[az, el]=meshgrid(phi0rad*180/pi, theta0rad*180/pi);
I attach also a picture of what I am trying to obtain.