MATLAB

mathsuser314159

New member
Joined
Jan 20, 2021
Messages
4
Could I have some help please,

I'm trying to write a code which states that if a number x is larger than y, if we divide them (x/y) i want the number z to be the largest whole number it is divisible by, such as if x = 35 and y =15 z would be 2 as 15x2 = 30 and therefore it would be 2 but with a remainder of 5
 
Could I have some help please,

I'm trying to write a code which states that if a number x is larger than y, if we divide them (x/y) i want the number z to be the largest whole number it is divisible by, such as if x = 35 and y =15 z would be 2 as 15x2 = 30 and therefore it would be 2 but with a remainder of 5
I've never used MATLAB, but I can search. It sounds like you may want this: https://www.mathworks.com/help/matlab/ref/idivide.html
 
Top