Table Of Contents

polar

Version:
    Last Modified: March 15, 2017

    Generates a polar coordinates plot.

    spd-note-note
    Note  

    You can only use the polar function in the MathScript Console.

    Syntax

    polar(y)
    polar(y, attributes)
    polar(x, y)
    polar(x, y, attributes)

    Inputs

    x

    Vector of the angle (measured in radians) between the positive x-axis and a straight line from the plot point to the center of the polar plot.

    y

    Vector of the distance from the plot point to the center of the polar plot.

    attributes

    Plot attributes. Order the plot attributes by color, point style, and line style. For example, 'bo-' specifies that the plot is blue, marks points with circles, and uses solid lines. attributes is a string that accepts a combination of the following values:

    Name Description
    'b'

    Colors the plot blue.

    'c'

    Colors the plot cyan.

    'g'

    Colors the plot green.

    'k'

    Colors the plot black.

    'm'

    Colors the plot magenta.

    'r'

    Colors the plot red.

    'w'

    Colors the plot white.

    'y'

    Colors the plot yellow.

    '.'

    Marks points with dots.

    'o'

    Marks points with circles.

    'x'

    Marks points with crosses.

    '+'

    Marks points with plus signs.

    '*'

    Marks points with asterisks.

    '-'

    Uses solid lines.

    ':'

    Uses dotted lines.

    '-.'

    Uses dashed and dotted lines.

    '--'

    Uses dashed lines.

    Syntax Variants

    • polar(y) plots the columns of y against the indexes of the columns.
    • polar(y, attributes) plots y against the indexes of the columns using the specified attributes.
    • If x and y are real vectors, polar(x, y) plots y against x.
    • polar(x, y, attributes) plots y against x using the specified attributes.
    x = 0:0.2:5*pi;
    polar(x, x, 'rx--')

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics