what is the role of CEIL?

3 次查看(过去 30 天)
CENTS = F( ceil(rand(K,1)*size(F,1)) ,:);

采纳的回答

Star Strider
Star Strider 2017-12-28
The ceil (link) function rounds toward +Inf. In the assignment you posted, its function appears to be to avoid a zero index, since MATLAB indices must be integers greater than zero.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by