Whats people lookup in this blog. Y ceil t rounds each element of the duration array t to the nearest number of seconds greater than or equal to that element. Matlab floor and ceiling functions.