Filter löschen
Filter löschen

what is the role of CEIL?

7 Ansichten (letzte 30 Tage)
Touhidul islam
Touhidul islam am 28 Dez. 2017
Beantwortet: Star Strider am 28 Dez. 2017
CENTS = F( ceil(rand(K,1)*size(F,1)) ,:);

Akzeptierte Antwort

Star Strider
Star Strider am 28 Dez. 2017
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.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by