Stats

171 Contributors: 7
2016-09-24
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Graphics: 2D Line Plots

Download matlab eBook

Syntax

  • plot(Y)

  • plot(Y,LineSpec)

  • plot(X,Y)

  • plot(X,Y,LineSpec)

  • plot(X1,Y1, X2,Y2, ..., Xn,Yn)

  • plot(X1,Y1,LineSpec1, X2,Y2,LineSpec2, ..., Xn,Yn,LineSpecn)

  • plot(___, Name,Value)

  • h = plot(___)

Parameters

ParameterDetails
Xx-values
Yy-values
LineSpecLine style, marker symbol, and color, specified as a string
Name,ValueOptional pairs of name-value arguments to customize line properties
hhandle to line graphics object

Remarks

http://www.mathworks.com/help/matlab/ref/plot.html

Related Examples