This blog specifically focuses on Matlab and Simulink applications for Electrical and Electronics Engineers.
Thursday, 24 October 2013
Plotting complex polar graph in MATLAB
Numerical#2
A complex number z can be represented as z = rejθ. The nth power of the complex number is given as
Zn = rn ejnθ. If r = 1.2 and θ = 10˚, use polar plot to plot |zn| versus nθ for n = 1 to 36.
Solution:
% polar plot of z
r = 1.2;
theta = 10*pi/180;
angle = 0:theta:36*theta;
mag = r.^(angle/theta);
polar(angle,mag, 'g*-')
grid
title('Polar Plot')
The output of the program is shown below in figure:
No comments:
Post a Comment