Why am I getting this error for Fspecial?
4 views (last 30 days)
Show older comments
Hello, I'm just trying to run the fspecial function. This is the error I keep getting:
Undefined function 'checknargin' for input arguments of type 'double'.
Error in fspecial>ParseInputs (line 242) checknargin(1,3,nargin,mfilename);
Error in fspecial (line 97) [type, p2, p3] = ParseInputs(varargin{:});
I've looked at the function, and do not see a checknargin function defined.
I've uninstalled and reinstalled Matlab thinking that maybe the file was corrupted somehow. I still have this error. I've commented out this line, and it goes to the next check* function and says there is an error...
Can someone please tell me how to fix this?
Thank you!
0 Comments
Accepted Answer
Wayne King
on 4 Nov 2013
Are you sure that you are using MathWorks' version of fspecial()?
If you enter
>>which fspecial
Do you get something back like:
matlab\toolbox\images\images\fspecial.m
Then how are you attempting to call fspecial.m
Please show your call.
0 Comments
More Answers (1)
Amanda
on 4 Nov 2013
4 Comments
Image Analyst
on 4 Nov 2013
I think you have to rename both the m-file name, and the function declaration line inside the m-file, right? Or maybe it's not required but it's recommended to avoid confusion.
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!