| DSP Blockset | Search  Help Desk |
| Matrix From Workspace | See Also |
Read a time-sequence of matrices from the workspace.
Library
Matrix Functions, in Math Functions; DSP SourcesDescription
The Matrix From Workspace block references a three-dimensional array in the workspace,A, to generate a matrix output to the system. At each sample time the block outputs a page (a two-dimensional slice) of the three-dimensional array, beginning with the first, A(:,:,1). The block continues to output pages of the array until it outputs the last page, A(:,:,end). The output sample period, Ts, is specified by the Sample time parameter.
As with Simulink's From Workspace block, the value of the output between specified sample times is linearly interpolated from the nearest two values. The value of the output preceding the first specified sample time and following the last specified sample time is extrapolated from the first or last two points.
If size(A,1) or size(A,2) equals 1, the block's output is a vector. If both equal 1, the output is a scalar.
Dialog Box

See Also
Matrix Constant