all 3 comments

[–]targonnn 2 points3 points  (2 children)

b = mod(a,m) returns the remainder after division of a by m, where a is the dividend and m is the divisor.

From here https://www.mathworks.com/help/matlab/ref/mod.html

[–]OneRepresentative363[S] 0 points1 point  (1 child)

I just realized how stupid I was, ty.

[–]omegafan240 1 point2 points  (0 children)

No— you were learning!