You can use the floor function:

result = floor(13/3)

This function always rounds down to the lower integer

Answer from drops on Stack Overflow
๐ŸŒ
MathWorks
mathworks.com โ€บ matlabcentral โ€บ answers โ€บ 266180-mod-or-modulus-operator-in-matlab
Mod or Modulus operator in MATLAB - MATLAB Answers - MATLAB Central
February 2, 2016 - I want to perform a mod operation on a number. ||10|| = 10 |||-10| = 10 Basically it returns the positive value of the input. All I could find is the sign() operator which returns 1,-1 or...
๐ŸŒ
MathWorks
mathworks.com โ€บ matlab โ€บ mathematics โ€บ elementary math โ€บ arithmetic operations
mod - Remainder after division (modulo operation) - MATLAB
b = mod(a,m) returns the remainder after division of a by m, where a is the dividend and m is the divisor. This function is often called the modulo operation, which can be expressed as b = a - m.*floor(a./m).
Discussions

How can I perform modulus operation (mod)?
Hi all, I am trying to use build-in functions in Matlab to help me to convert my project from decimal system to binary system. It is include addition, subtraction, multiplication and division as... More on mathworks.com
๐ŸŒ mathworks.com
2
0
May 5, 2021
matlab - How I can get the other part after a division with a modulo operator - Stack Overflow
When I divide 13 with 3 and use integer numbers the result will be 4. With mod(13,3) I receive the remainder 1. But how can I get the 4 in Matlab? I think it is not possible to switch to integer nu... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to do symbolic mod operation
How to do symbolic mod operation. Learn more about symbolic, modulus More on mathworks.com
๐ŸŒ mathworks.com
1
0
April 24, 2017
What is modulo in simulink?
From what I understand, the modulo N used in the figure is just a depiction of the operation required. You can use a constant block having the value of N instead of the Modulo-N block, and then use a MATLAB Function block to perform the Modulo N operations as desired. More on mathworks.com
๐ŸŒ mathworks.com
1
0
January 25, 2023
๐ŸŒ
MathWorks
mathworks.com โ€บ fixed-point designer โ€บ data type exploration โ€บ fixed-point specification โ€บ fixed-point specification in matlab โ€บ fixed-point math functions
mod - Modulus after division for fi objects - MATLAB
m = mod(x,y) returns the modulus after division of x by y, where x is the dividend and y is the divisor. This function is often called the modulo operation, which can be expressed as m = x - floor(x./y).*y.
๐ŸŒ
MathWorks
mathworks.com โ€บ symbolic math toolbox โ€บ mathematics โ€บ number theory
mod - Symbolic modulus after division - MATLAB
where floor rounds (a / b) toward negative infinity. For example, the modulus of โ€“8 and โ€“3 is โ€“2, but the modulus of โ€“8 and 3 is 1. If b = 0, then mod(a, b) = mod(a, 0) = 0. Calling mod for numbers that are not symbolic objects invokes the MATLABยฎ mod function.
๐ŸŒ
MathWorks
mathworks.com โ€บ matlabcentral โ€บ answers โ€บ 146684-how-can-i-perform-modulus-operation-mod
How can I perform modulus operation (mod)? - MATLAB Answers - MATLAB Central
May 5, 2021 - I am trying to use build-in functions in Matlab to help me to convert my project from decimal system to binary system. It is include addition, subtraction, multiplication and division as well. Also I am looking for a function that can produce the result of (mod) operations (remainder)such as:
๐ŸŒ
Delft Stack
delftstack.com โ€บ home โ€บ howto โ€บ matlab โ€บ modulo in matlab
Modulo in MATLAB | Delft Stack
February 14, 2024 - The basic syntax for the modulo ... operation with scalar values. ... In this example, we utilize the mod function to find the remainder when 51 is divided by 7....
Find elsewhere
๐ŸŒ
EDUCBA
educba.com โ€บ home โ€บ data science โ€บ data science tutorials โ€บ matlab tutorial โ€บ matlab mod
Matlab Mod | Complete Guide to Matlab Mod with Syntax and Examples
March 6, 2023 - In the language of mathematics, the 2 numbers are called dividend (one which is divided) and divisor (one by which the dividend is divided). For example, when we use 7 and 2 as the inputs for the mod function, the output will be 1.
Call ย  +917738666252
Address ย  Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
๐ŸŒ
Duke
pundit.pratt.duke.edu โ€บ wiki โ€บ MATLAB:Mod
MATLAB:Mod - PrattWiki
MATLAB's mod command returns the remainder after division. It is also called the modulo operation (thus, mod).
๐ŸŒ
MathWorks
mathworks.com โ€บ matlabcentral โ€บ answers โ€บ 337085-how-to-do-symbolic-mod-operation
How to do symbolic mod operation - MATLAB Answers - MATLAB Central
April 24, 2017 - I try to do mod function with symbolic variables. Is there a way to do something like mod(a+b,b)=a which means that the reminder of (a+b) divided by b is a. But MATLAB doesn't allow both the parameters of the mod function be symbolic.
๐ŸŒ
MathWorks
mathworks.com โ€บ fixed-point designer โ€บ embedded implementation โ€บ fixed-point math operations in matlab and simulink
Modulo by Constant - Perform modulo operation with a constant denominator - Simulink
May 15, 2013 - Divisor to use for the modulus operation, specified as a positive, real-valued, finite scalar, vector, matrix, or multidimensional array. ... Slope-bias representation is not supported for fixed-point data types. ... The Modulo by Constant block now supports vector and matrix inputs. The Modulo by Consant block is supported for use inside a For Each Subsystem block. ... Run the command by entering it in the MATLAB ...
๐ŸŒ
MathWorks
mathworks.com โ€บ matlabcentral โ€บ answers โ€บ 1900495-what-is-modulo-in-simulink
What is modulo in simulink? - MATLAB Answers - MATLAB Central
January 25, 2023 - From what I understand, the modulo N used in the figure is just a depiction of the operation required. You can use a constant block having the value of N instead of the Modulo-N block, and then use a MATLAB Function block to perform the Modulo N operations as desired.
๐ŸŒ
MathWorks
mathworks.com โ€บ matlabcentral โ€บ answers โ€บ 496017-using-the-mod-function-to-turn-a-vector-i-e-1-15-into-1-2-3-1-2-3-1-2-3-etc
Using the Mod Function to Turn a Vector (i.e. 1:15) into [1, 2, 3, 1, 2, 3, 1, 2, 3] etc. - MATLAB Answers - MATLAB Central
December 11, 2019 - I'm currently reading through the book MATLAB for Clinical and Cognitive Scientists by Mike Cohen. In the book, he mentions a 'neat trick' to covert some vector of linearly-spaced numbers (my e.g. 1:15) into a vector of numbers counting up from 1 to N over and over, using the mod function.
๐ŸŒ
MathWorks
mathworks.com โ€บ symbolic math toolbox โ€บ mupad โ€บ mathematics โ€บ discrete mathematics โ€บ number theory โ€บ congruences
Modulo operator - MuPAD
July 31, 2013 - ... If m <> 0, then mod(x, m) returns the value x - n*m where n = floor(x/m). If x and m have different signs, then mod(x, m) has the same sign as m. If m = 0, then mod(x, m) returns x. See Example 1. _mod(x, m) is the functional equivalent of the operator notation x mod m. See Example 2. By ...