Check for missing argument or incorrect argument data type in call to function 'smooth'.
이전 댓글 표시
Hi all,
the above error emerges also when I try the ssimple toy example in the help of ssmooth function. I am on Mac OSX Catalina and using R2020b.
Why iss this happening?
Thank you,
Federico
댓글 수: 2
Uday Pradhan
2021년 3월 18일
Hi, could you please share a minimal example to reproduce the error?
Jan
2021년 3월 21일
The message tells you, that there is a problem with calling the function. Then show us, how you call the function. What are the inputs?
답변 (2개)
Jan
2021년 3월 18일
Do you call the built-in function smooth or did you shadow it with a user-defined function? See:
which smooth -all
Please post a small working example. Does the message occur for this also:
smooth(rand(1, 100))
댓글 수: 3
Grace Wang
2021년 7월 22일
Hi Jan, I got the same problem and I don't know how to solve. Could you please help me with that? Thank you in advance!
When I run the code you recommend, I got:
>> which smooth -all
/Applications/MATLAB_R2021a.app/toolbox/econ/econ/@ssm/smooth.m % ssm method
/Applications/MATLAB_R2021a.app/toolbox/econ/econ/@msVAR/smooth.m % msVAR method
/Applications/MATLAB_R2021a.app/toolbox/econ/econ/@statespace/smooth.m % statespace method
/Applications/MATLAB_R2021a.app/toolbox/econ/econ/@dssm/smooth.m % dssm method
>>
>> smooth(rand(1, 100))
Check for incorrect argument data type or missing argument in call to function
'smooth'.
Walter Roberson
2021년 7월 22일
You do not have a smooth function for type double. Perhaps you are missing Curve Fitting Toolbox
Grace Wang
2021년 7월 22일
Thank you Walter! I install the Curve Fitting Toolbox, and the problem is solved.
카테고리
도움말 센터 및 File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!