Question: mmpolar.m Code: function out = mmpolar ( varargin ) % MMPOLAR Polar Plot with Settable Properties. ( MM ) % MMPOLAR ( Theta , Rho
mmpolar.m Code:
function outmmpolarvarargin
MMPOLAR Polar Plot with Settable Properties. MM
MMPOLARThetaRho creates a polar coordinate plot using the angle Theta
in RADIANS and radius in Rho. Rho can contain negative values.
MMPOLARThetaRho,S creates the plot using the line spec given by S See
the function PLOT for information about S
MMPOLARThetaRhoSThetaRhoS plots all the defined curves.
MMPOLARThetaRhoS'PName',PValue,... plots all defined curves,
and sets plot property names to the corresponding property values.
MMPOLARThetaRhoSP plots all the defined curves, and uses the
structure P having fieldnames equal to plot property names to set
corresponding property values contained in the associated fields.
HMMPOLARThetaRho,... returns handles to lines or lineseries objects.
MMPOLARPNamePValue,... sets the property names to the corresponding
property values. See below for property namevalue pairs. Just as with
the function SET 'PName' is case insensitive and need only be unique.
MMPOLAR with no input argument returns a structure with fieldnames equal
to property names each containing the associated property values.
MMPOLARP sets property values using the structure P as described above.
MMPOLARPName returns the property value associated with 'PName'.
MMPOLARPName'PName returns multiple property values in a
cell array.
MMPOLARHax uses the axes having handle Hax.
Examples: MMPOLARThetaRho,S'Style','compass' creates a polar plot with
theta pointing North and theta increasing in the clockwise direction.
MMPOLARThetaRho,S creates a cartesian polar plot where theta is along
the xaxis and theta increases in the counterclockwise direction.
MMPOLAR works with HOLD, XLABEL, and ZOOM, but not with AXIS or GRID
See also POLAR, PLOT, HOLD
PROPERTY VALUE Default DESCRIPTION
Style cartesian compass shortcut to two common polar
styles. Cartesian: theta points east and increases
going north. Compass: theta points north and
increases going east. See TDirection and TZeroDirection.
Axis on off shortcut for grids, ticks, border,
backgroundcolor, visibility
Border on off shortcut for axis border, tick mark visibility.
Grid on off shortcut for visibility of rho and theta grids
RLimit Rmin Rmax rho axis limits may be negative values
TLimit Tmin Tmax theta axis limits in RADIANS
RTickUnits string added to last rho tick label to denote units
TTickScale degrees radians theta axis tick label scaling
TDirection cw ccw direction of increasing theta
TZeroDirection North East South West theta axis direction
BackgroundColor w colorspec for axis background color
BorderColor k colorspec for axis border and tick mark colors
FontName string font name for tick labels
FontSize scalar font size for tick labels
FontWeight normal bold font weight for tick labels
TickLength normalized length of rho and theta axis tick marks
RGridColor k colorspec for rho axis grid color
RGridLineStyle : rho axis grid line style
RGridLineWidth rho axis grid line width in points
RGridVisible on off rho axis grid visibility
RTickAngle scalar angular position of rho axis tick labels in
TTickScale units
RTickOffset Normalized radial offset for rho tick labels
RTickLabel string cell array containing rho axis tick labels
RTickLabelVisible on off visibility of rho axis tick labels
RTickLabelHalign center left right horizontal
alignment of rho axis tick labels
RTickLabelValign middle top cap baseline bottom vertical
alignment of rho axis tick labels
RTickValue vector vector containing rho axis tick positions
RTickVisible on off rho axis tick visibility
TGridColor colorspec for theta axis grid color
TGridLineStyle : theta axis grid line style
TGridLineWidth theta axis grid line width in points
TGridVisible on off theta axis grid visibility
TTickDelta theta axis tick spacing in TTickScale units
degrees or pi radians
TTickDirection in out direction of theta tick marks
TTickOffset normalized radial offset of theta tick labels
TTickLabel string cell array containing theta axis tick labels
TTickLabelVisible on off visiblity of theta axis tick labels
TTickSign sign of theta tick labels
TTickValue vector vector of theta ticks in TTickScale units
TTickVisible on off theta axis tick visibility
DC Hanselman, University of Maine, Orono, ME
MasteringMatlab@yahoo.com
Mastering MATLAB
Parse Inputs Parse Inputs Find MMPOLAR axes if it exists narginargin;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
