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

Create successful ePaper yourself

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

cellfun<br />

2-232<br />

C{1,3} = pi;<br />

C{2,1} = 2 + 4i;<br />

C{2,2} = 7;<br />

C{2,3} = magic(3);<br />

cellfun returns a 2-by-3 double array:<br />

D = cellfun('isreal',C)<br />

D =<br />

1 1 1<br />

0 1 1<br />

len = cellfun('length',C)<br />

len =<br />

2 4 1<br />

1 1 3<br />

isdbl = cellfun('isclass',C,'double')<br />

isdbl =<br />

1 0 1<br />

1 1 1<br />

See Also isempty, islogical, isreal, length, ndims, size

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

Saved successfully!

Ooh no, something went wrong!