%% Create Feather Plot
% Define |theta| as values between $-2\pi$ and $2\pi$. Define |r| as a vector the
% same size as |theta|.

% Copyright 2015 The MathWorks, Inc.


theta = -pi/2:pi/16:pi/2;
r = 2*ones(size(theta));

%%
% Create a feather plot showing the direction of |theta|. Since |feather|
% uses Cartesian coordinates, convert |theta| and |r| to Cartesian
% coordinates using |pol2cart|.

[u,v] = pol2cart(theta,r);
feather(u,v)
