Software Warning Messages - Potential Name Conflict in Custom Functions
18 views (last 30 days)
Show older comments
I wanted to reach out to discuss a recurring issue I've been encountering when opening MATLAB. I keep getting the following warning messages:
Warning: Function iscolumn has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function ismatrix has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isrow has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function narginchk has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isequaln has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function istable has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isfile has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isfolder has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
To provide some context, I'm using MATLAB with the following toolboxes:
- Image Processing
- Optimization
- Signal Processing
- Statistics and Machine Learning
Additionally, I have spm12 and Gannet installed for my specific analysis needs.
I believe these messages are related to custom functions I have created, but I'm not entirely sure about the implications or the best course of action to address this. Therefore, I am seeking guidance from the knowledgeable members of this community.
Has anyone else encountered these warnings when using MATLAB? Could you kindly shed some light on the potential consequences of these conflicts and the best practices for resolving them? I am particularly concerned about how these name conflicts might affect the functionality of my custom functions and the built-in MATLAB functions.
I'm unsure about how to proceed and would appreciate any advice or insights from experienced users in the community. Is renaming my custom functions the only solution to avoid conflicts? If so, what naming conventions would you recommend to prevent future issues?
Thank you so much for your time and assistance.
0 Comments
Answers (1)
Steven Lord
on 7 Aug 2023
What do these commands display for you?
which -all narginchk
which -all istable
Based on other messages I've seen on Answers in the past I believe that spm12 includes implementations of some built-in functions for use in releases prior to their introduction to MATLAB. If that's the case and you're using a release that has these built-in functions available, removing from the MATLAB search path the directory or directories that are part of spm12 that contains these implementations may be a solution.
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!