Round toward positive infinity

You can also select a location from the following list:

Input duration, specified as adurationarray.

This function fully supports tall arrays. For more information, seeTall Arrays.

Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

Round each value in t to the nearest number of hours greater than or equal to that value.

MathWorksis the leading developer of mathematical computing software for engineers and scientists.

Mou搜索引擎优化ver text to see original. Click the button below to return to the English version of the page.

ceilconverts logical andcharelements ofXintodoublevalues.

Y = ceil(X)rounds each element ofXto the nearest integer greater than or equal to that element.

Y = ceil(t,unit)rounds each element oftto the nearest number of the specified unit of time greater than or equal to that element.

Round toward positive infinity

Round Duration Values Toward Positive Infinity

Round each value in a duration array to the nearest number of seconds greater than or equal to that value.

Unit of time, specified asseconds,minutes,hours,days, oryears. A duration of 1 year is equal to exactly 365.2425 24-hour days.

Round Matrix Elements Toward Positive Infinity

The automated translation of this page is provided by a general purpose third party translator tool.

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Accelerating the pace of engineering and science

X = [-1.9 -0.2 3.4; 5.6 7 2.4+3.6i]; Y = ceil(X)

Y = ceil(t)rounds each element of thedurationarraytto the nearest number of seconds greater than or equal to that element.

Note: This page has been translated byMathWorks.Click here to seeTo view all translated materials including this page, selectCountryfrom the country navigator on the bottom of this page.

-1.0000 + 0.0000i 0.0000 + 0.0000i 4.0000 + 0.0000i 6.0000 + 0.0000i 7.0000 + 0.0000i 3.0000 + 4.0000i

Data Types:singledoubleint8int16int32int64uint8uint16uint32uint64charlogicalComplex Number Support:Yes

Input array, specified as a scalar, vector, matrix, or multidimensional array. For complexX,ceiltreats the real and imaginary parts independently.

Code generation does not supportcharorlogicaldata types forX.

You clicked a link that corresponds to this MATLAB command:

MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.

Leave a Reply