| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Signal Processing Blockset |
| Contents | Index |
| Learn more about Signal Processing Blockset |
| On this page… |
|---|
When you want to perform the same operations on several independent signals, you can group those signals together as a multichannel signal. For example, if you need to filter each of four independent signals using the same direct-form II transpose filter, you can combine the signals into a multichannel signal, and connect the signal to a single Digital Filter Design block. The block applies the filter to each channel independently.
A frame-based signal with N channels and frame size M is represented by a sequence of M-by-N matrices. Multiple individual frame-based signals, with the same frame rate and size, can be combined into a multichannel frame-based signal using the Simulink Matrix Concatenate block. Individual signals can be added to an existing multichannel signal in the same way.

You can combine existing frame-based signals into a larger multichannel signal by using the Simulink Concatenate block. All signals must have the same frame rate and frame size. In this example, a single-channel frame-based signal is combined with a two-channel frame-based signal to produce a three-channel frame-based signal:
Open the Matrix Concatenate Example 3 model by typing
doc_combiningfbsigs
at the MATLAB command line.

Double-click the Signal From Workspace block. Set the block parameters as follows:
Signal = [1:10;-1:-1:-10]'
Sample time = 1
Samples per frame = 4
Based on these parameters, the Signal From Workspace block outputs a frame-based signal with a frame size of four.
Save these parameters and close the dialog box by clicking OK.
Double-click the Signal From Workspace1 block. Set the block parameters as follows, and then click OK:
Signal = 5*ones(10,1)
Sample time = 1
Samples per frame = 4
The Signal From Workspace1 block has the same sample time and frame size as the Signal From Workspace block. When you combine frame-based signals into multichannel signals, the original signals must have the same frame rate and frame size.
Double-click the Matrix Concatenate block. Set the block parameters as follows, and then click OK:
Number of inputs = 2
Mode = Multidimensional array
Concatenate dimension = 2
The 4-by-3 matrix output from the Matrix Concatenate block contains all three input channels, and preserves their common frame rate and frame size.
![]() | Creating Multichannel Sample-Based Signals | Deconstructing Multichannel Sample-Based Signals | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |