MATLAB: How to form each data into integrated singnal stream
"from audio device"intergrated signal stream
From audio device puts out data by frame. Now my problem is how can I form each data into integrated singnal stream?
How to form each data into integrated singnal stream?
Best Answer
My friend, many thanks for your valuable reply.
Integrated signal stream means that each frame signal is saved in a variable and the variable will be processed.
If the frame signal is not saved in a variable, I will write each frame signal(10 s) into .mat file by To File and the data matrix size is 256x313. However, when the data is read from mat file by From file, only part of data can be read and the matrix size is 51x256. (The signal sampling is different). My problem is how can I read all the data, not part of data of the mat file?
I am looking forward to your answers and your suggestions. Thanks.
The ability to save frame-based signals directly is not available in the Signal Processing Blockset.
To work around this issue, use the Frame Conversion block with the To Sample option for the output signal. For more detailed information on this block, execute the following command at the MATLAB Command Window:
I'm not 100% sure, but seeing the error message, it looks like Stateflow charts don't support frame-based signals at this point. You might need to use the Unbuffer and Buffer blocks to convert your frame-based signals to sample-based signals, and vice-versa to attain the interface. Please seeBuffering and Frame-Based Processing for more information.
Best Answer