DSP Blockset
  Go to block:
    Search    Help Desk 

Understanding Samples and Frames

In DSP Blockset models, vectors and matrices are often used to group scalar signal samples. For example, a length-N vector may represent a snapshot of the readings from N thermocouples. Similarly, an M-by-N matrix might represent the brightness values of an M-by-N array of pixels at a particular instant in time. In each case, the vector or matrix is used to bundle scalar samples together in a single, convenient unit.

The scalar samples in a vector or matrix may come from multiple independent signals (as shown above) or from a single signal, like the speech segment shown below.

When the scalar samples come from several independent signals, and all correspond to the same instant in time, the vector or matrix is referred to as a sample vector or sample matrix. When the scalar samples come from a single signal, and correspond to sequential points in time, the vector or matrix is referred to as a frame vector or frame matrix. A sequence of sample vectors or sample matrices is called a sample-based sequence, while a sequence of frames or frame matrices is called a frame-based sequence.

Note
The terms sample vector, sample matrix, frame vector, and frame matrix do not designate intrinsic Simulink data types like "real" and "complex." Blocks in the DSP Blockset do not automatically know whether a particular input is a sample matrix or a frame matrix. Instead, blocks that process sample-based inputs differently than frame-based inputs offer a check box (Frame-based inputs) in the parameter dialog box to specify the input type.

In summary:

The following sections explain how to work with sample-based and frame-based signals in the DSP Blockset.



[ Previous | Help Desk | Next ]