- MATLAB plot - MathWorks
XYplotplot(X,Y,o)
plot(X1,Y1,...,Xn,Yn)XY
plot(X1,Y1,LineSpec1,...,Xn,Yn,LineSpecn)XYLineSpecXYplot(X1,Y1,X2,Y2,LineSpec2,X3,Y3)
YplotYx 1 Y
YplotYYplot(Y)plot(real(Y),imag(Y))
plot(___,Name,Value)Name,ValueLine -
plot(ax,___)ax (gca) ax
h= plot(___)hLine
x 0 2/100yx
x 100 -22x
Name,Value RGB
x 0 10 150 yx
durationDurationTickFormat-duration
nexttiletiledlayout 21 nexttileax1ax1plottitleylabely
% Create data and 2-by-1 tiled chart layout
x = linspace(0,3); y1 = sin(5*x); y2 = sin(15*x); tiledlayout(2,1)
ax1 = nexttile; plot(ax1,x,y1) title(ax1,
ax2 = nexttile; plot(ax2,x,y2) title(ax2,
-22xpx = linspace(-2*pi,2*pi); y1 = sin(x); y2 = cos(x); p = plot(x,y1,x,y2);
r = 2; xc = 4; yc = 3; theta = linspace(0,2*pi); x = r*cos(theta) + xc; y = r*sin(theta) + yc; plot(x,y) axisequal
int8int16int32int64uint8uint16uint32uint64categoricaldatetimeduration
int8int16int32int64uint8uint16uint32uint64categoricaldatetimeduration
plotPolarAxespolarplotGeographicAxesgeoplot
Name-Name1,Value1,...,NameN,ValueNMarker,o,MarkerFaceColor,red
f80 RGB
plot(x,y,Marker,square,MarkerIndices,5)
() 0
RGB
[0.4 0.6 0.7] () 0
RGB
DatetimeTickFormat,eeee, MMMM d, yyyy HH:mm:ssSaturday, April 19, 2014 21:41:06 2014 4 19 9:41:06
DurationTickFormat-xtickformat
ColorOrderLineStyleOrderplot R2019b ColorOrderLineStyleOrder
GPU Parallel Computing Toolbox (GPU)
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.