whats the command to find quotient in MATLAB 2008b ?
43 次查看(过去 30 天)
显示 更早的评论
whats the command to find quotient in MATLAB 2008b ?
1 个评论
Rednar
2013-7-12
You could use the function "idivide" which includes the rounding option. http://www.mathworks.co.uk/help/matlab/ref/idivide.html
The simple way though would be to do A./B
回答(3 个)
the cyclist
2013-7-12
编辑:the cyclist
2013-7-12
You're probably going to want to use one of the slash operators:
doc slash
for details.
For example:
A = [1 2 3];
B = [7 8 9];
C = A./B;
0 个评论
Saksham Popli
2020-10-28
function r=digit_sum(input)
r=rem(input,10);
q=fix(input/10);
if q==0
r=r;
else
r=r+digit_sum(q);
end
end
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!