Table Of Contents


    Last Modified: January 9, 2017

    Generates a polar coordinates plot.


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


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



    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.


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


    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

    Colors the plot blue.


    Colors the plot cyan.


    Colors the plot green.


    Colors the plot black.


    Colors the plot magenta.


    Colors the plot red.


    Colors the plot white.


    Colors the plot yellow.


    Marks points with dots.


    Marks points with circles.


    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: Not supported

    Recently Viewed Topics