How to check divisibility?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Jitesh Kumar
am 25 Sep. 2018
2 Stimmen
a=5; b=1; rem(a,b)=4
Kategorien
Mehr zu Files and Folders finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!