Why am I getting this error for Fspecial?
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Wayne King
le 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 commentaires
Plus de réponses (1)
Amanda
le 4 Nov 2013
4 commentaires
Image Analyst
le 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.
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!