Is the "smooth" function no longer supported in 2018b?

Just updated to 2018b, from 2018a, and made sure all the toolboxes I had were downloaded too.
Ran a script that I've been working on that uses the "smooth" function, however it is no longer working and throwing the error:
Undefined function 'smooth' for input arguments of type 'double'.
Is the smooth function no longer supported in the latest update? How can I get around this? The line of code that was working is:
start_filtered=smooth(start,150);
where start is a column vector.
Thanks.

 Accepted Answer

smooth is in the Curve Fitting Toolbox.
Do you have the Curve Fitting Toolbox installed, and a current license for it? Check what is installed:
ver
and check your licenses:

6 Comments

No I don't have this toolbox. This is weird because the smooth function is still working in 2018a...
MATLAB Version 9.5 (R2018b)
Control System Toolbox Version 10.5 (R2018b)
Image Processing Toolbox Version 10.3 (R2018b)
Parallel Computing Toolbox Version 6.13 (R2018b)
Robust Control Toolbox Version 6.5 (R2018b)
Statistics and Machine Learning Toolbox Version 11.4 (R2018b)
>> which -all smooth
/Applications/MATLAB_R2018a.app/toolbox/curvefit/curvefit/smooth.m
/Applications/MATLAB_R2018a.app/toolbox/econ/econ/@dssm/smooth.m % dssm method
/Applications/MATLAB_R2018a.app/toolbox/econ/econ/@ssm/smooth.m % ssm method
/Applications/MATLAB_R2018a.app/toolbox/econ/econ/@statespace/smooth.m % statespace method
So it is the Curve Fitting Toolbox in R2018a.
So looks like they've removed it in 2018b... Well I guess I'll continue using 2018a. Thanks!
Removed it? No.
>> which -all smooth
/Applications/MATLAB_R2018b.app/toolbox/curvefit/curvefit/smooth.m
/Applications/MATLAB_R2018b.app/toolbox/econ/econ/@dssm/smooth.m % dssm method
/Applications/MATLAB_R2018b.app/toolbox/econ/econ/@ssm/smooth.m % ssm method
/Applications/MATLAB_R2018b.app/toolbox/econ/econ/@statespace/smooth.m % statespace method
Exactly the same list of functions and methods.
In your R2018a version you should check with
which -all smooth
and see what you come up with. Possibly you are using smooth() from a File Exchange contribution or third-party toolbox.
Well looks like it's gone for me:
2018a
>> which -all smooth
E:\Program Files\MATLAB\R2018a\toolbox\curvefit\curvefit\smooth.m
2018b
>> which -all smooth
'smooth' not found
Is Curvefitting toolbox definitely installed, according to ver?
You might need to reinstall the toolbox.

Sign in to comment.

More Answers (0)

Products

Release

R2018b

Community Treasure Hunt

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

Start Hunting!