Reputation: 85
I want to use the MATLAB function "normalize
" which normalizes the data to zero mean and unit variance. During the compilation, I still get the error:
Undefined function '
normalize
' for input arguments of type 'double
'.
Although this function support double inputs.
When I typed:
which normalize -all
I got:
C:\Program Files\MATLAB\R2017a\toolbox\signal\signal\@dfilt\normalize.m % dfilt method
Could any one help me please?
Upvotes: 1
Views: 4672
Reputation: 125864
You're likely using a version of MATLAB older than R2018a, which is when the function normalize
was first introduced. The which
command is showing you a normalize
method for dfilt
class objects (from the Signal Processing Toolbox) that existed prior, which only accepts arguments of type dfilt
.
Upvotes: 0