14.09.2015 Views

Matvec Users’ Guide

Matvec Users' Guide

Matvec Users' Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

3.5. SPECIAL MATRICES 33<br />

Row 3 0 0 1<br />

> A = identity(2,3)<br />

Col 1 Col 2 Col 3<br />

Row 1 1 0 0<br />

Row 2 0 1 0<br />

3.5.4 sample<br />

sample(m,n) returns a random sample from UniformDist(0.0,1.0), stored in a matrix of m by n. For example,<br />

> A = sample(2,3)<br />

Col 1 Col 2 Col 3<br />

Row 1 0.792847 0.619559 0.927987<br />

Row 2 0.89682 0.990276 0.266462<br />

3.5.5 other special matrices<br />

Other special matrices in <strong>Matvec</strong> are hilb, invhilb, hankel, vander, hadamard, pascal, toeplitz. They are<br />

privided in a macro package special matrix. See details in Chapter 9, section 9.3.

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

Saved successfully!

Ooh no, something went wrong!