MATLAB Answers

Simulink - LMS Filter Datatype Clash

3 views (last 30 days)
Joshua Vandermeer
Joshua Vandermeer on 3 Oct 2019
Answered: jibrahim on 17 Oct 2019
Hello,
I'm trying to duplicate my own version of the dspanc example in simulink with my own audio clips.
I'm getting an error when I try and run the model saying
"Data type mismatch. Input port 1 of 'lms_noise_cancelling/LMS Filter1' expects a signal of data type 'double'. However, it is driven by a signal of data type 'single'."
As far as I know, the LMS filter can accept single inputs. The inputs driving it are single, so I don't see what the problem is. Does anyone out there have some insight into what my problem might be?
Thank you in advance.

  0 Comments

Sign in to comment.

Answers (1)

jibrahim
jibrahim on 17 Oct 2019
Hi Joshua,
Make sure the step size input is single-precision as well.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by