How to check divisibility?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Jitesh Kumar
le 25 Sep 2018
2 votes
a=5; b=1; rem(a,b)=4
Catégories
En savoir plus sur Files and Folders dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!