MATLAB中怎么表示非负整数和正整数?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 08:43:42

MATLAB中怎么表示非负整数和正整数?

非负整数:floor(x)==x && x>=0
正整数:floor(x)==x && x>0