MATLAB: How can i write code on this encode if truef (a, b) = { 0, if a mod b = 0 { b − (a mod b), otherwiseend Best Answer a=input('Enter a\n');b=input('Enter b\n');if ~mod(a,b) y=0else y=b-mod(a,b)end Related SolutionsMATLAB: PRIME NUMBERS,… I Tried to make a program that separates prime numbers between any interval……but it doesn’t work……!?! Hint: j doesn't go from 2 to i-1, it goes from 2 to A(i). MATLAB: Not providing a fixed input function c=sum_of_two_numbers(a,b)a=input('Enter the 1st Number \n');b=input('Enter the 2nd Number \n');c=a+b;fprintf('The result is %f',c);end Related QuestionHow to output your numbers into an arrayHow to compare the user input value in a given matrix.Problem with isinteger() – how to determine whether a constant is integer
Best Answer