Question #145
Submitted by

**Answiki**on 09/10/2020 at 04:35:16 PM UTC# How to compute modulo operation (remainder after division) with MATLAB?

Merged questions

Answer
Submitted by

**Answiki**on 09/10/2020 at 04:43:03 PM UTCThe MATLAB modulo function `mod(n,d)`

returns the remainder after the division of n by d:

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

Question by

**Answiki**06/23/2022 at 09:42:28 AM
How to do a modulo (remainder of integer division) with MatLab?

Answer by

**Answiki**on 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

**Answiki**09/10/2020 at 04:37:59 PM
How to calculate the remainder after division with MATLAB?

Question by

**Answiki**09/10/2020 at 04:37:11 PM
How to compute modulo operation with MATLAB?

Answer by

**Answiki**on 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

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

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

Icons proudly provided by Friconix.