Modified version of standard POLAR plot function to allow for rotation of plot labels (not the plot itself). Also allows for redefinition of the radius labels to allow for data containing negative values not having negative radii (as is often the case with dB in acoustics). Originally created for directivity plots but is useful for other tasks. Allows for semi-circle polar plotting, custom radial grid steps, and custom radial label angle.
Returns handles to text labels and grids for latter modifications.
Tested with MatLab version R12, R14, and 2017a.
Reverse compatible with old POLAR syntax.
Rather than editing the code, a quick and dirty way to switch the direction of the coordinate system is to just switch the sign on the labels:
set(anglab_h(LOOP),'String',( int2str(-1*str2num(get(anglab_h(LOOP),'String'))) ));
I think this is better than adding yet another option to the function.
amazingly，it help me a lot
Excellent work. Exactly this function is missing in MatLab, when working with directivity patterns.
I just had to invert the signs of the angles, for "my" coordinate-system
When I click on this link, the file appears corrupted, i.e. some characters appear to be in Chinese
This has been added to the file
an example would help
Small bug fix.
Added several examples.
Added access to handles for grid line customization.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.