Try this:
numerator = 10.75;
denominator = 3.6;
lowerRemainder = rem(numerator, denominator)
upperRemainder = denominator - lowerRemainder
Results in command window:
lowerRemainder =
3.55
upperRemainder =
0.0500000000000003
So, you're probably wondering why it's not exactly 0.05. If so, you need to read and understand this FAQ section: http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F