DSP Blockset | ![]() ![]() |
Displaying Matrices
The Matrix Viewer block provides general matrix display capabilities that can be used with all matrix signals (frame-based and sample-based).
Example: Displaying Matrices
In the model below, a matrix of shifted sinusoids is displayed with the Matrix Viewer block.
To build the model, specify the following parameter values in the Sine Wave block:
Specify the following parameter values in the Submatrix block:
1
Specify the following parameter values in the Reshape block:
Specify Colormap matrix = bone(256)
in the Image properties pane of the Matrix Viewer block.
When you run the model, the Matrix Viewer displays each 8-by-8 matrix as it is received. The 256 shades in the specified bone
colormap are mapped to the range of values specified by the Minimum input value and Maximum input value parameters; see colormap
for more information. In this example, these values are -1.0
and 1.0
respectively, which are appropriate for the sinusoids of amplitude 1 that compose the input signal.
![]() | Displaying Signals in the Frequency-Domain | Delay and Latency | ![]() |