How to write a script that is the same as the function rem (remainder)?

1 回表示 (過去 30 日間)
Anita Luo
Anita Luo 2017 年 3 月 5 日
回答済み: Sindhu Priya 2017 年 3 月 8 日
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

回答 (1 件)

Sindhu Priya
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.

カテゴリ

Help Center および File ExchangeCoordinate Transformations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by