フィルターのクリア

whats the command to find quotient in MATLAB 2008b ?

67 ビュー (過去 30 日間)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2013 年 7 月 12 日
回答済み: Saksham Popli 2020 年 10 月 28 日
whats the command to find quotient in MATLAB 2008b ?
  1 件のコメント
Rednar
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 件)

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 Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by