필터 지우기
필터 지우기

why I receive message like this"Warning: Function ishermitian has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict" in Matlab 2014

조회 수: 1 (최근 30일)
why I receive message like this"Warning: Function ishermitian has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict" in Matlab 2014.How can I remove this message?

채택된 답변

Mike Hosea
Mike Hosea 2014년 10월 20일
편집: Mike Hosea 2014년 10월 20일
MATLAB added a new built-in function called ishermitian in 2014a. Apparently you have one of your own on the path. Type "which -all ishermitian". Locate any that do not belong to MATLAB's official toolboxes. Rename those to something else. If they do exactly the same thing as the built-in ishermitian, you're done. If they do something else, then you will need to find all uses of ishermitian in your code and change these to call whatever you named your ishermitian function to.
  댓글 수: 2
baruch
baruch 2014년 10월 20일
It is named in mptver.263 but it is not working now(means my mpt toolbox).How can I correct it.
Mike Hosea
Mike Hosea 2014년 10월 20일
편집: Mike Hosea 2014년 10월 20일
It would be nice to sort everything out, but since it is not your code that has the problem, I would undo my changes since they apparently broke MPT. You can undo them manually, or perhaps reinstalling MPT would be an option. Assuming there isn't an newer version that just fixes the problem, you can silence the warning with:
warning('off','MATLAB:dispatcher:nameConflict')
I have this in my startup.m file, but be careful about this because the warning does have some value--these name collisions can lead to confusion. Sometimes the old saying "ignorance is bliss" is wrong.
I would also contact the authors of MPT and ask for their advice.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by