Using 'From Multimedia File', how to split the channels
Show older comments
When using the 'From Multimedia File' and a stereo audio file in simulink, how can you take the output of the block and split into two matrices. (eg. output is 256x2 and is split into two matrices of 256x1). My last resort would be to load the file first into a workspace and then get the matrix from there, but I would like to avoid that
What I have tried and didnt work: Demux Direct lookup table Matrix Multiply
Any way to do this?
thanks J
Accepted Answer
More Answers (2)
Doug Eastman
on 24 Oct 2011
0 votes
Demux only works with vectors, but this signal is a matrix. You can use two Selector blocks. Set the input dimensions to 2, select all from the first index and 1 from the second index for the first block, 2 for the second block.
Categories
Find more on Signal Import and Export in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
