c = sub(F,a,b)
subtracts fi objects a and b using
fimath object F. This is helpful in cases when you
want to override the fimath objects of a and
b, or if the fimath properties associated with
a and b are different. The output of
fi object c has no local
fimath.
Operands, specified as scalars, vectors, matrices, or multidimensional
arrays.
a and b must both be fi
objects and must have the same dimensions unless one is a scalar. If either
a or b is scalar, then c has
the dimensions of the nonscalar object.
Data Types: fi Complex Number Support: Yes
Algorithms
C = sub(F,A,B)
or
C = F.sub(A,B)
is equivalent to
A.fimath = F;
B.fimath = F;
C = A - B;
except
that the fimath properties of A and B
are not modified when you use the functional form.
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Code generation does not support the syntax F.sub(a,b). You
must use the syntax sub(F,a,b).
HDL Code Generation Generate Verilog and VHDL code for FPGA and ASIC designs using HDL Coder™.