23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

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.

deal<br />

2-406<br />

c =<br />

d =<br />

1<br />

1<br />

1<br />

1 0 0<br />

0 1 0<br />

0 0 1<br />

0<br />

0<br />

0<br />

Use deal to obtain the contents of all the name fields in a structure array:<br />

A.name = 'Pat'; A.number = 176554;<br />

A(2).name = 'Tony'; A(2).number = 901325;<br />

[name1,name2] = deal(A(:).name)<br />

name1 =<br />

Pat<br />

name2 =<br />

Tony

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

Saved successfully!

Ooh no, something went wrong!