Matlab warning: Function has same name as builtin

I have just installed Dynare 4.4.3 and wanted to run a mod-file provided by my university. When trying to run the file, Matlab shows a large number of warnings, e.g.:

*Warning: Function ordeig has the same name as a MATLAB builtin. We suggest you rename the function to avoid a
potential name conflict.

In path (line 109)
In addpath (line 88)
In dynare_config (line 48)
In dynare (line 48) *

I have installed Dynare as described on (see and run Matlab R2015b.
If any additional information is required, please let me know.

Thank you very much for your help.

Matlab has a built-in library of functions and other code. Giving one of your functions the same name as a built-in Matlab function could potentially confuse Matlab and cause interesting things to happen. It’s the same reason why users are encouraged to use alternate spellings for greek letters - i.e. alppha instead of alpha - because these could already be defined in Matlab.

From the example you posted, it sounds like the Dynare code you’ve been provided has a function named “ordeig,” but Matlab has already defined “ordeig” as something else, creating a conflict in interpretation.

It seems to me that you have added the path to the dynare matlab folder by including the subfolders. This is a mistake as you have added a folder where we keep ordeig for versions of matlab/octave that do not have it. You should only add the path to the dynare matlab folder. Dynare itself will take care of including the other necessary folders in the path. In your case, it is sufficient to clear all dynare paths then type addpath /Applications/Dynare/4.4.3/matlab

I have the same problem.

There was no such warning when I was using R2015. But after I installed R2016a, it started to showing such warnings.

Did you clean your path in R2016a to only include the matlab directory of the Dynare installation?

I install RS2016 to a new laptop, and then installed the dynare. So I don’t think there exist any version conflict between previously installed programs.

@leolee: Please provide the exact and full message you get.