plot

Plot the data

Syntax

y = plot ( x,y[=""],opt[=""] )
y = plot ( handle,x,y[=""],opt[=""] )
y = handle.plot ( x,y[=""],opt[=""] )

Inputs

ArgumentTypeDescriptionUnit
handlegraphics handlehandle to the figure window or the axesn/a
xVECT or audiox-data-
yVECT or audioy-data-
opttextplot option string--specifying color marker and line style (see notes)-

Outputs / Return Value

Notes

Examples

plot(x) // plot x with the default parameters
plot(x,y) // plot y as a function of x with the default parameters
plot(x,"r") // plot x with the red line
plot(x,"o") // plot x with the marker "o" and no line
plot(x,"*":) // plot x with the marker "*" and dotted line
plot(x,y,"o") // plot y as a function of x with the marker "o" and no line
plot(x,y,"*:") // plot y as a function of x with the marker "*" and dotted line
plot(h,x) // plot x in h (either a figure window handle or axes handle)
plot(h,x,y)
plot(h,x,y,"r")

See Also

Review Status