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: Ben Abbott
Subject: Re: syntax error in irrelevant places
Date: Sun, 14 Aug 2011 10:09:33 -0400

On 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.
> %
> %
> 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)

This line will give a syntax error.

> T        = % is found so as to satisfy the budget condition.

Ben


reply via email to

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