whats the command to find quotient in MATLAB 2008b ?

43 次查看(过去 30 天)
whats the command to find quotient in MATLAB 2008b ?

回答(3 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-7-12
q=fix(20/6)
r=mod(20,6)

the cyclist
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;

Saksham Popli
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

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by