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.

ceil<br />

2ceil<br />

Purpose Round toward infinity<br />

Syntax B = ceil(A)<br />

Description B = ceil(A) rounds the elements of A to the nearest integers greater than or<br />

equal to A. For complex A, the imaginary and real parts are rounded<br />

independently.<br />

Examples a = [-1.9, -0.2, 3.4, 5.6, 7, 2.4+3.6i]<br />

2-226<br />

a =<br />

Columns 1 through 4<br />

-1.9000 -0.2000 3.4000 5.6000<br />

Columns 5 through 6<br />

7.0000 2.4000 + 3.6000i<br />

ceil(a)<br />

See Also fix, floor, round<br />

ans =<br />

Columns 1 through 4<br />

-1.0000 0 4.0000 6.0000<br />

Columns 5 through 6<br />

7.0000 3.0000 + 4.0000i

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

Saved successfully!

Ooh no, something went wrong!