How to check divisibility?
Show older comments
Hi, I need to check whether two numbers are divisible or not. But how can I do that in Matlab? e.g. Matlab gives 1.5 for 3/2 but I need to get 3/2 = 0 and 4/2 =2.
Accepted Answer
More Answers (1)
Jitesh Kumar
on 25 Sep 2018
2 votes
a=5; b=1; rem(a,b)=4
Categories
Find more on Number Theory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!