필터 지우기
필터 지우기

what is the role of CEIL?

조회 수: 7 (최근 30일)
Touhidul islam
Touhidul islam 2017년 12월 28일
답변: Star Strider 2017년 12월 28일
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에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by