Why am I getting this error for Fspecial?
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!
Réponse acceptée
Plus de réponses (1)
Amanda
le 4 Nov 2013
0 votes
4 commentaires
Sean de Wolski
le 4 Nov 2013
I would recommend just renaming the file
fspecialAdvisor
Then there would be no naming conflict. Else, yes, you just have to manipulate the path or use packages to create individual namespaces (more complicated)
Wayne King
le 4 Nov 2013
you can remove folders from the MATLAB path with rmpath() or by using pathtool. To launch pathtool, simply do
>>pathtool
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.
Amanda
le 4 Nov 2013
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!