DSP Blockset
  Go to block:
    Search    Help Desk 
Matrix To Workspace    See Also

Send a time-sequence of matrices to the workspace.

Library

Matrix Functions, in Math Functions; DSP Sinks

Description

The Matrix To Workspace block writes a three-dimensional array, A, to the workspace, where A contains the acquired samples of a matrix input. At the end of the simulation the block writes every Dth input sample (a matrix) to a page (a two-dimensional slice) of the specified three-dimensional array, where D is specified by the block's Decimation factor parameter. The block writes the first input to the first page of the array, A(:,:,1), and continues adding pages until it writes the last input matrix to the last array page, A(:,:,end).

To save a record of the actual sample times corresponding to each page of the three-dimensional array, check the Time box in the Save to workspace panel of the Simulation Parameters dialog box. You can access these parameters by selecting Parameters from the Simulation menu, and clicking on the Workspace I/O tab.

Use the Signal To Workspace block to write frame-matrix inputs to the workspace.

Note
The Matrix To Workspace block does not support real-time data logging when used with the Real-Time Workshop. You should not use this block if you expect to generate real-time code from your model.

Dialog Box

Array name
The name of the three-dimensional array to create in the workspace.
Maximum number of matrices
The maximum number of pages, P, in the array created in the workspace. If the block samples more than P times, it stores only the last P matrices.
Decimation factor
The factor by which to reduce the input sample rate.
Matrix size
The dimensions of the input matrix.

See Also

Matrix From Workspace
Signal To Workspace
Triggered Matrix To Workspace


[ Previous | Help Desk | Next ]