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.

all<br />

2-46<br />

where code is executed depending on a single condition, not a vector of possibly<br />

conflicting conditions.<br />

Applying the all function twice to a matrix, as in all(all(A)), always reduces<br />

it to a scalar condition.<br />

all(all(eye(3)))<br />

ans =<br />

0<br />

See Also any, logical operators, relational operators, colon<br />

Other functions that collapse an array’s dimensions include:<br />

max, mean, median, min, prod, std, sum, trapz

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

Saved successfully!

Ooh no, something went wrong!