| Target Support Package™ TC6 | ![]() |
Zero-based index of maximum value element in each input signal channel
C62x DSP Library — Math and Matrices
The Vector Maximum Index block computes the zero-based index of the maximum value element in each channel (vector) of the input signal. The input may be any real, 16-bit, signed fixed-point data type, and the number of samples per input channel must be an integer multiple of three. The output data type is a 32-bit signed integer.
The Vector Maximum Index block supports both continuous and discrete sample times. This block supports little-endian code generation only.

In simulation, the Vector Maximum Index block is equivalent to the TMS320C62x DSP Library assembly code function DSP_maxidx. During code generation, this block calls the DSP_maxidx routine to produce optimized code.
![]() | C62x Vector Dot Product | C62x Vector Maximum Value | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |