poster
2019-12-10, 20:30
我想知道如何在MATLAB中获得整数除法的商吗?谢谢并恭祝安康!
回答:
使用idivide (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/idivide.html) :
C = idivide(A,B)与A./B相同,除了小数商朝零舍入到最接近的整数。
我链接到的MathWorks网站上介绍了第三个可选参数,用于控制舍入行为。
更多&回答... (https://stackoverflow.com/questions/2603112)
回答:
使用idivide (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/idivide.html) :
C = idivide(A,B)与A./B相同,除了小数商朝零舍入到最接近的整数。
我链接到的MathWorks网站上介绍了第三个可选参数,用于控制舍入行为。
更多&回答... (https://stackoverflow.com/questions/2603112)