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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

lineFinally, pop the first line to the front:set(gca,'Children',[hline1 hline2])10.80.60.40.20−0.2−0.4−0.6−0.8−10 1 2 3 4 5 6 7Input Argument Dimensions – Informal FormThis statement reuses the one column matrix specified for ZData to producetwo lines, each having four points.line(rand(4,2),rand(4,2),rand(4,1))If all the data has the same number of columns and one row each, <strong>MATLAB</strong>transposes the matrices to produce data for plotting. For example,line(rand(1,4),rand(1,4),rand(1,4))is changed to:line(rand(4,1),rand(4,1),rand(4,1))2-273

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

Saved successfully!

Ooh no, something went wrong!