help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax error in irrelevant places


From: DGati
Subject: Re: syntax error in irrelevant places
Date: Sun, 14 Aug 2011 07:01:33 -0700 (PDT)

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.
%
%
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
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]