how can i write code on this?
1 回表示 (過去 30 日間)
古いコメントを表示
if true
f (a, b) = { 0, if a mod b = 0
{ b − (a mod b), otherwise
end
0 件のコメント
採用された回答
Birdman
2018 年 1 月 16 日
a=input('Enter a\n');
b=input('Enter b\n');
if ~mod(a,b)
y=0
else
y=b-mod(a,b)
end
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Motor Drives についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!