How to check divisibility?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Jitesh Kumar
el 25 de Sept. de 2018
2 votos
a=5; b=1; rem(a,b)=4
Categorías
Más información sobre Files and Folders en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!