On Sun, Aug 14, 2011 at 10:01 AM, DGati
<address@hidden> wrote:
I decided to add the script for ease of understanding:
% Steady state for benchmark case.
s = 0.2;
gamma = 0.03; % saving rate gov.
dp = 0.1;
dg = 0.03;
alpha = 0.05;
ro = 1.5; % Set to be >1
omega = 0.95;
A = 1;
%G = 3;
tau = 0.2;
T = % is found so as to satisfy the budget condition.
the problem is just above this line
t = % is a syntax error.
Doug
%
%
x=zeros(3,1);
guess = [1; 1; 3];
param = [s tau A omega ro alpha dp gamma dg];
x = fsolve(@(x) benchfunc(x, param), guess);
y=A*(omega*x(1)^((ro-1)/ro) + (1-omega)*x(2)^(alpha*(ro-1)/ro))^(ro/(ro-1))
kp=x(1)
kg=x(2)
T=x(3)
--
View this message in context: http://octave.1599824.n4.nabble.com/syntax-error-in-irrelevant-places-tp3742878p3742896.html