作业帮 > 综合 > 作业

MATLAB中 fix(x) 什么意思?主要是fix

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/06 01:55:24
MATLAB中 fix(x) 什么意思?主要是fix
FIX(X) rounds the elements of X to the nearest integers towards zero.
向0靠拢取整,例:
>> fix(3.2)
ans =
3
>> fix(3.7)
ans =
3
>> fix(-3.7)
ans =
-3
>> fix(-3.2)
ans =
-3