How to check divisibility?
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
Jitesh Kumar
2018년 9월 25일
2 개 추천
a=5; b=1; rem(a,b)=4
카테고리
도움말 센터 및 File Exchange에서 Files and Folders에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!