Strange artifact in mmpolar

조회 수: 1 (최근 30일)
Justace Clutter
Justace Clutter 2013년 6월 6일
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

채택된 답변

Justace Clutter
Justace Clutter 2013년 6월 6일
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개)

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by