Dec 25, 2008

Matlab 取xxx數

ref: http://blog.sina.com.cn/s/blog_50a6faf801008lkg.html

取餘數 (Mod)

floor(x):得到不大於x的整數值

round(x):得到最接近x 的整數值

ceil(x):得到不小於x的整數值

fix(x):得到絕對值不大於x絕對值的整數

No comments:

Post a Comment