MATLAB Answers

0

Strange artifact in mmpolar

I wanted to ask this question in the file exchange but I needed to be able to include images to help explain the situation. I have a set of data that I wanted to plot and I wanted to use mmpolar so that I did not have to mess with shifting and reversing the angles to convert to compass style. When the data is plotted with the builtin Matlab polar command I get an offset circle like I would assume. When I plot the exact same data with no manipulation inbetween, using mmpolar a portion of the plot is set to zero magnitude. This is not in the data and is a strange artifact of the mmpolar plotting commend. mmpolar has been around for a while now and everybody seems to enjoy using it. I can not help but think that I have done something wrong and that is why I am seeing this artifact. I have included images of the outputs from the two plotting commands in this message. The code to generate the plots is also included.
fig2 = figure;
mmpolar(anglesR*((2*pi)/360), mag, '.k', 'Style', 'compass');
fig3 = figure;
polar(anglesR*((2*pi)/360), mag, '.k');
mmpolar Image
polar image
A zip file with all of the needed code for reproduction is at the following link

  0 Comments

Sign in to comment.

1 Answer

Answer by Justace Clutter on 6 Jun 2013
 Accepted Answer

Ok, I have determined the issue here. mmpolar attempts to highlight the structure in the data by setting the RLimits to [min(rho) max(rho)]. This is why it looks as though the data went to zero on the plot when in reality it did not. By explicitly setting the RLimits the plot comes out correct.

  0 Comments

Sign in to comment.