Info
此问题已关闭。 请重新打开它进行编辑或回答。
Not enough input arguments
2 次查看(过去 30 天)
显示 更早的评论
Dear All,
Please, help me with following problem. I can't run the DSGE model (the code is from author) in Matlab. Attached the code.
COEF_NCC_RED
Not enough input arguments.
Error in COEF_NCC_RED (line 7)
aa = subs(eq,{'k_t','m_t','c_t','l_t','z_t','u_t','v_t'},{1,0,0,0,0,0,0});
1 个评论
回答(1 个)
Ameer Hamza
2020-5-14
编辑:Ameer Hamza
2020-5-14
COEF_NCC_RED is just a function definition. You need to define an equation 'eq' before calling COEF_NCC_RED. For example, run the following lines
syms k_t m_t c_t l_t z_t u_t v_t
eq = k_t+m_t+c_t+l_t+z_t+u_t+v_t;
COEF_NCC_RED(eq)
paste these lines in a new script file and run it. COEF_NCC_RED should be on MATLAB's path (e.g., in the same MATLAB folder).
4 个评论
Ameer Hamza
2020-5-15
This error does not make much sense with this code. Instead of creating a section, first, try to run this code as a separate file.
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!