MATLAB Language Graphics: 2D Line Plots

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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



Got any MATLAB Language Question?