| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Fixed-Point Toolbox |
| Contents | Index |
| Learn more about Fixed-Point Toolbox |
c = mrdivide(a,b)
c = a/b
c = mrdivide(a,b) and c = a/b perform right-matrix division.
When one or both of the inputs is a fi object, the denominator input, b, must be a scalar and the output fi object c is equivalent to c = rdivide(a,b) or c = a./b (right-array division).
The numerator input a can be complex, but the denominator input b must always be real-valued. When the numerator input a is complex, the real and imaginary parts of a are independently divided by b.
For information on the data type rules used by the mrdivide function, see the rdivide reference page.
In this example, you use the forward slash (/) to perform right matrix division on a 3-by-3 magic square of fi objects. Because the numerator input is a fi object, the denominator input b must be a scalar:
a = fi(magic(3)) b = fi(3, 1, 12, 8) c = a/b
The mrdivide function outputs a signed 3-by-3 array of fi objects, each of which has a word length of 16 bits and a fraction length of 3 bits.
a =
8 1 6
3 5 7
4 9 2
DataTypeMode: Fixed-point: binary point scaling
Signedness: Signed
WordLength: 16
FractionLength: 11
b =
3
DataTypeMode: Fixed-point: binary point scaling
Signedness: Signed
WordLength: 12
FractionLength: 8
c =
2.6250 0.3750 2.0000
1.0000 1.6250 2.3750
1.3750 3.0000 0.6250
DataTypeMode: Fixed-point: binary point scaling
Signedness: Signed
WordLength: 16
FractionLength: 3
add, divide, fi, fimath, numerictype, rdivide, sub, sum
![]() | mpy | mtimes | ![]() |

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |