I am currently playing with the following example and corresponding topic Active Noise Control with Simulink Real-Time provided by Mathworks
I need to use a speech signal as a source insted of a Noise as in example, in my case a speech signal is noise.
So I replace Noise source block to From Multimedia File block and specified a speech file.
Then when I run the model, I am getting the following error:
05:43 PM Elapsed: 0.260 sec
MATLAB System block 'Test_FilteredX_LMS_ANC/LMS Update' error occurred when invoking 'validateInputsImpl' method of 'dsp.private.LMSUpdate'. The error was thrown from '
'C:\Program Files\MATLAB\R2020a\toolbox\dsp\dsp\+dsp\+private\LMSUpdate.m' at line 373'.
Expected Input to be a scalar.
Component:Simulink | Category:Block error
I tried to fix it by searching on the web, changing Audio output data type inside the From Multimedia File block, but dont really have an idea how to deal with it, since I had not really used Simulink before.
Thank you, I would appreciate your help
Have a nice day