plotting energy as a function of angles

3 views (last 30 days)
zozo
zozo on 10 Jan 2012
Hello,
Iam dealing with beamforming using 3D microphone array. I have a matrix M (360 x 501) containing the energies(in dB) of the signals emitted by sources placed at each degree from 1:360.
How can I plot these energies as function of azimuth angle (keeping elevation and radius constants to view the beam pattern in order to exactly localize the Angle of Arrival of the source (a main lobe at that particular angle)?
How can I relate angles to their corresponding energies and plot the beam pattern Energy vs Azimuth?
please help

Answers (1)

Andrew Newell
Andrew Newell on 10 Jan 2012
Sounds like you want a polar plot like polar or rose.
Example:
polar((1:360)'*pi/180,M(:,i))
or
rose((1:360)'*pi/180,M(:,i))
(Edited to correct mistake and add examples)
  2 Comments
zozo
zozo on 10 Jan 2012
iam looking for a polar plot or normal plot Energy vs Angle. But iam unable to relate them
Andrew Newell
Andrew Newell on 10 Jan 2012
Sorry, compass was a mistake - it expects Cartesian coordinates. I have added examples of the use of polar and rose.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!