Separate a signal in two signals with Simulink

90 views (last 30 days)
Hello,
So I imported a table of 1024*1000 it is basically signals when plotted. I need to separate the signals into channel left and channel right. To do that on table receives all the pair-index-columns and the other all the impair-index-columns.
In MATLAB it is easy to do but I need to so the same thing in Simulink which is with what I am struggling right now.
Thank you
  2 Comments
Fangjun Jiang
Fangjun Jiang on 7 Feb 2023
?? "To do that on table receives all the pair-index-columns and the other all the impair-index-columns"
Hamda Zarrouk
Hamda Zarrouk on 7 Feb 2023
The audio signal is made out for example of 1000 sin waves that include both left and right channel and i want to separate them into 2 Signals of 500 but they have to be separated in a way that the first one is in the fist channel, the second in the second channel, the third back in the first channel and so on.
I am using a Bus selector but how can i automate the separations and handle a big number of signals ?

Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 7 Feb 2023
Edited: Fangjun Jiang on 7 Feb 2023
  1. Pre-process the data in MATLAB and then import the two splitted data sets into Simulink. Or
  2. Use the "Selector" block. In the dialog, select "Index vector (dialog)" and specify [1:2:end] or [2:2:end]

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!