Rename resid.m
In Matlab Online I got the warning
Warning: Dynare is not on top of the Matlab/Octave path! This can cause problems because the Dynare implementations of resid.m, and vnorm.m will be overriden.
Warning: I put /MATLAB Add-Ons/Toolboxes/dynare/matlab on top of your Matlab/Ocatve path.
Note that this is a temporary change (i.e. it will not affect future Matlab/Octave sessions).
Given that Dynare 6.0 will break backward compatibility with the regularly used syntax resid(1)
, I would suggest to use this opportunity to rename the underlying Matlab function to something more expressive, which at the same time does not cause a naming conflict with the built-in function.