우선 matlab에서 help ceil 을 통해 ceil이 어던 함수인지 살펴보았습니다.
>> help ceil ceil Round towards plus infinity. ceil(X) rounds the elements of X to the nearest integers towards infinity. |
간단히 말하자면, 올림을 해주는 함수입니다.
ceil(5.3) = 6
ceil(2.9) = 6
ceil(-5.2) = -5
ceil(-0.7) = 0
간혹 유용하게 쓰일 일이 있을 것 같네요.
'Engineering > Matlab' 카테고리의 다른 글
Matlab: 시간에 따라 변하는 현상을 gradation으로 plot (0) | 2016.05.24 |
---|---|
Matlab: drawnow, 실시간으로 그래프 그리기 (0) | 2016.05.09 |
Mablab: 그래프 편집하기 (1) | 2016.05.09 |