ceil - Round symbolic matrix toward positive infinity

Syntax

Y = ceil(x)

Description

Y = ceil(x) is the matrix of the smallest integers greater than or equal to x.

Example

x = sym(-5/2)
[fix(x) floor(x) round(x) ceil(x) frac(x)]
= [ -2, -3, -3, -2, -1/2]

See Also

round, floor, fix, frac

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS