how can i write code on this?

3 次查看(过去 30 天)
if true
f (a, b) = { 0, if a mod b = 0
{ b (a mod b), otherwise
end

采纳的回答

Birdman
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 个)

类别

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