How to write a script that is the same as the function rem (remainder)?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi I have a project that needs me to write a script that returns the number of remainders given sets of numerators and denominators. Is there any hints to what I should consider as a whole or when using the commands (for, if, while)?
Thanks
댓글 수: 0
답변 (1개)
Sindhu Priya
2017년 3월 8일
If the use case is to get the reminders for the set of numerators with each element from the set of denominator, then using any loop will suffice the requirement.
The reminders obtained can be stored in a matrix to return.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Coordinate Transformations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!