12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LineSpecExamplesPlot the sine function over three different ranges using different line styles,colors, and markers.t = 0:pi/20:2*pi;plot(t,sin(t),'−.r*')hold onplot(sin(t−pi/2),’−−mo’)plot(sin(t−pi),’:bs’)hold off10.80.60.40.20−0.2−0.4−0.6−0.8−10 5 10 15 20 25 30 35 40 45Create a plot illustrating how to set line properties.plot(t,sin(2*t),’−mo’,...’LineWidth’,2,...’MarkerEdgeColor’,’k’,...’MarkerFaceColor’,[.49 1 .63],...’MarkerSize’,12)2-290

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!