Undefined function 'gensys' for input arguments of type 'double'.

3 views (last 30 days)
%%Input the equations
%%%%%%%%%
% (1) Euler Equation
%%%%%%%%%
g0(1,nc) = -1;
g0(1,nR) = -1;
g1(1,nc) = -gamma;
pi(1,1) = gamma;
pi(1,2) = 1;
%%%%%%%%%%%
% (2) Labor equation
%%%%%%%%%%%
g0(2,nc) = gamma
g0(2,nn) = gamman*theta;
g0(2,nw) = -1;
%%%%%%%%%%%%
% (3) Production equation
%%%%%%%%%%%%
g0(3,ny) = 1;
g0(3,nn) = alpha-1;
g0(3,na) = -1
g1(3,nk) = alpha;
%%%%%%%%%%%%
% (4) Law of Motion
%%%%%%%%%%%%
g0(4,nk) = 1;
g0(4,ni) = -(i/k);
g1(4,nk) = 1-delta
%%%%%%%%%%%%
% (5) Techonology
%%%%%%%%%%%%
g0(5,na) = 1;
g1(5,na) = rho;
psi(5,1) = 1
%%%%%%%%%%%%
% (6) Investment
%%%%%%%%%%%%
g1(6,nc) = c/y;
g1(6,ny) = -1;
g1(6,ni) = (i/y);
%%%%%%%%%%%%
% (7) Rental
%%%%%%%%%%%%
g0(7,ny) = delta-1;
g0(7,nR) = 1;
g1(7,nk) = alpha-1
%%%%%%%%%%%%
% (8) wage
%%%%%%%%%%%%
g0(8,nn) = alpha;
g0(8,nR) = 1;
g1(8,nk) = alpha;
  1 Comment
Jan
Jan on 5 Apr 2015
Edited: Jan on 5 Apr 2015
I've formatted your code. Without a proper formatting it is nearly unreadable.

Sign in to comment.

Answers (1)

Jan
Jan on 5 Apr 2015
Please post the complete error message. The shown code does not contain the line, which fails. gensys does not belong to Matlab's toolbox functions, so the users of the forum cannot guess, what you are trying to do. It seems like you want to run a function, but did not install it on your computer before.
  2 Comments
Image Analyst
Image Analyst on 27 Apr 2015
Ibrahim's "Answer" moved here:
This is the complete error message. I still don't know what the problem is.
Undefined function 'gensys' for input arguments of type 'double'.
Error in Last__homework (line 157)
[G,C0,M,fmat,fwt,ywt,gev,eu]=gensys(g0,g1,cc,psi,pi);
Image Analyst
Image Analyst on 27 Apr 2015
Why do you think you should have that function? Do you believe it ships with one of your toolboxes? If so, which one? Was it one your friend or professor was supposed to give you? I've never heard of it.

Sign in to comment.

Categories

Find more on Earth, Ocean, and Atmospheric Sciences in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!