Page 1 of 1
MATLAB STEADY STATE FILE MULTI-COUNTRY
Posted:
Fri Jul 18, 2014 5:00 pm
by sanga
Hi,
I need to use the Matlab steady state file to solve my multi-country model, but the error message is the following:
??? Undefined function or variable 'yss_1'.
Error in ==> mymodel at 455
oo_.steady_state( 1 ) = yss_1;
PLEASE, someone can help me in order to call the steady state file?
The files are herewith.
Re: MATLAB STEADY STATE FILE MULTI-COUNTRY
Posted:
Sun Jul 20, 2014 7:35 am
by jpfeifer
You added an initval block to your mod-file that tries to access yss_1, which has not been defined. If you are using a correct steady state file that produces the correct analytical steady state, you can simple delete the initval block.
Re: MATLAB STEADY STATE FILE MULTI-COUNTRY
Posted:
Tue Jul 22, 2014 2:18 pm
by sanga
Thanks Jpfeifer for your reply,
I corrected this but the problem remain. Can you, please, verify for me if the steady state file is correctly specified in terms of macro-processor?
Best,
Re: MATLAB STEADY STATE FILE MULTI-COUNTRY
Posted:
Wed Jul 23, 2014 8:47 am
by jpfeifer
You must do that yourself. You can see the resulting steady state file as a matlab m-file in your folder after running the preprocessor. You can use F9 in Matlab to execute selected parts of the code. Note that your problem does not stem from the steady state file but from the initval-block. To see what the preprocessor does, use the
- Code: Select all
[savemacro[=macro_file]]
option of the preprocessor. See the manual