Undefined function 'MATLAB' for input arguments of type 'char'

2 次查看(过去 30 天)
I am new to matlab and I am running and I am encountering the above problem.
>addpath /applications/dynare/4.33/matlab/
>dynare Foreign
Configuring Dynare...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse Kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] K-order perturbation solver.
[mex] K-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.
Starting Dynare (version 4.33).
Starting preprocessing of the model file...
Substitution of endo lags >=2: added 1 auxiliary variables and equations.
Found 36 equation(s).
Evaluating expressions...done.
Computing static model derivatives.
-order 1
Computing dynamic model derivatives.
-order 1
-order 2
Processing outputs...done
Preprocessing completed.
Starting MATLAB/Octave computing.
Undefined function 'MATLAB' for input argument of type 'char'.
Error in Foreign (line 269)
MATLAB 5.0 MAT-file, Platform:MACI64, created on: Sat Oct 5 07:29:38 2013
Error in dynare (line 120)
evalin('base',fname);
I don't know how to proceed and don't know what to do from here. Please help. I use macbook and am able to run my lecturers tute so am not sure if it's something to do with installation or it's just my mod file.

回答(3 个)

Andreas Goser
Andreas Goser 2013-11-12
While MATLAB Answers may be a good forum to get the attention of Dynare users, you may want to consult the Dynare support page.
As of my general experience: The majority of issue with MATLAB 3rd party tools is on compatibilty. Please make sure your environment is supported.

Joe
Joe 2014-4-21
As shown in the error information, your dynare code, i.e. Foreign.mod, should be checked at line 269. Open your .mod file in matlab editor and check that line. You may missed some command or typo. I am experienced in using Dynare, but cannot command on your problem without your .mod file.
Joe

Walter Roberson
Walter Roberson 2014-4-21
You are asking to process a file named Foreign. Inside that file at line 269 you have a line
MATLAB 5.0 MAT-file, Platform:MACI64, created on: Sat Oct 5 07:29:38 2013
that should not be there.
I have no idea what your Foreign file looks like so I have no suggestions at the moment as to what should be there instead or how the line got there.

类别

Help CenterFile Exchange 中查找有关 Platform and License 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by