Question #163

# How to compute modulo operation (remainder after division) with MATLAB?

Merged questions

Answer

The MATLAB modulo function `mod(n,d)`

returns the remainder after the division of n by d:

```
>>> mod(24,5)
4
```

5 events in history

Answer by

**Alphonsio**09/10/2020 at 04:43:03 PMThe MATLAB modulo function `mod(n,d)`

returns the remainder after the division of n by d:

```
>>> mod(24,5)
4
```

Question by

**Alphonsio**09/10/2020 at 04:37:59 PMHow to calculate the remainder after division with MATLAB?

Question by

**Alphonsio**09/10/2020 at 04:37:11 PMHow to compute modulo operation with MATLAB?

Answer by

**Alphonsio**09/10/2020 at 04:37:01 PMThe MATLAB modulo function `mod(n,d)`

returns the remainder after the division of n by d:

```
>>> mod(24,5)
4
```

Question by

**Alphonsio**09/10/2020 at 04:35:16 PMHow to compute modulo operation (remainder after division) with MATLAB?

# | ID | Query | URL | Count |
---|

Icons proudly provided by Friconix.