plotPolar

Purpose

Graph data using polar coordinates.

Format

plotPolar([myPlot, ]radius, theta)
Parameters:
  • myPlot (struct) – Optional argument, a plotControl structure
  • radius (Nx1 or NxM matrix) – Each column contains the magnitude for a particular line.
  • theta (Nx1 or NxM matrix) – Each column represents the angle values for a particular line.

Examples

// Declare plotControl structure
struct plotControl myPlot;

// Initialize plotControl structure
myPlot = plotGetDefaults("polar");

// Set new background color to light grey
plotSetBkdColor(&myPlot, "light grey");

// Create data
x = seqa(0.1, 0.1, 200);
y = x;

// Create a polar plot of the data with the new background
// color
plotPolar(myPlot, x, y);