Matlab Code Antenna Radiation Pattern In
(Theta) .* cos(Phi); Y = E .* sin(Theta) .* sin(Phi); Z = E .* cos(Theta); % 3D Surface plot figure; surf(X, Y, Z, E); shading interp; colormap jet; colorbar; title('3D Radiation Pattern of Half-Wave Dipole Antenna'); xlabel('X'); ylabel('Y'); zlabel('Z');