help-octave
[Top][All Lists]
Advanced

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

Re: how to solve this error mesages from this program?


From: Hwang
Subject: Re: how to solve this error mesages from this program?
Date: Fri, 8 Feb 2019 11:11:36 +0900
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

Hi Doug,

I just followed what you revised for the program.

And I got the perfect results! Also, your comments on the difficulty of calculation between symbolic and converting it to a numeric ones were very good to grasp the problem.

By the way, why we could meet this kind of difficult in using octave but not happened in matlab?


Thank you a lot!


Insang

On 2019/02/08 0:29, Doug Stewart wrote:


On Thu, Feb 7, 2019 at 10:23 AM Insang HWANG <address@hidden> wrote:
For the convenience and comparison and trouble shooting correctly, could send your revised m file again to me? 
That could be really helpful and time saving. 

Thank you!

Insang 

 


 
On Fri, Feb 8, 2019, 12:05 AM Doug Stewart <address@hidden> wrote:


On Thu, Feb 7, 2019 at 9:40 AM Insang HWANG <address@hidden> wrote:
Thank you very much, Doug.

The correct graph is attached at this email. This graph was made by Matlab not octave. Did you any error messages from octave?

But my trial of using octave for the same rbckato m file did produce such a graph. My octave gave two positions of x and y lines without any graphs.

Could you let me know about this different results from you and me?

Best,

I had one mistake.
Here are the new plots

Please keep the help octave list in your replies.


I had to change 
coef = eval(jopt);

to 

  fh=function_handle(jopt)
  coef=fh(cstar,cstar,kstar,kstar,lstar,lstar,vstar,vstar)
  

What did you do?




 

Insang 

On Thu, Feb 7, 2019, 11:30 PM Doug Stewart <address@hidden> wrote:


On Thu, Feb 7, 2019 at 12:32 AM gwestern <address@hidden> wrote:
Hello Folks,

I am very thankful to many good guidnances from Nicholas and others for the
problem of symbolic.
By the way, the next problem is to run this program  RBCkato.m
<http://octave.1599824.n4.nabble.com/file/t373188/RBCkato.m


I tried this file and got

Is that what you would expect?
What does Matlab show?



 
Well, I ran this program by matlab and then matlab prosecute it
succcessfully and gave a result.
However, when I use Octave and ran this; then there happpens many errors;
so many errors massages could not be copied all here.

some of thems:
1) >>        syms  ct   kt  lt  rt  vt  ca   ka    la  ra  va  ;

warning: the 'syms' function belongs to the symbolic package from Octave
Forge
which you have installed but not loaded.  To load the package, run 'pkg
load symbolic' from the Octave prompt.

**my comments: actually, my symbplic is working good and no problem.

2) error: 'va' undefined near line 2 column 14
>>        wt = (1-alpha)*vt*(kt/lt)^alpha;
error: 'vt' undefined near line 1 column 23
>>    % Optimal Conditions  & state transition
>>        labor   = lt^lamda-wt/(myu*ct^sigma) ;       % LS = LD
 error: Invalid call to lt.  Correct usage is:  -- lt (X, Y)

3)  >>    [W, V] = eig(A);
error: 'A' undefined near line 3 column 15
>>    Q = inv(W);
error: 'W' undefined near line 1 column 12
>>    %W*V*Q;
>>    theta = diag(V); error: 'V' undefined near line 2 column 17

4)  error: operator *: nonconformant arguments (op1 is 0x0, op2 is 2x1)
>>       SY = [S1' ;S]  ;
error: vertical dimensions mismatch (1x2 vs 24x0)
>>       X = (real(P)*SY')';
error: 'SY' undefined near line 1 column 20

All these similar kinds of errors were happened.

But when i use matlab, there are no such problems and showed the results!

Could you guide me to solve this problem at Octave?

Thank you very much!

Insang





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html




--
DASCertificate for
                                                206392



--
DASCertificate for 206392



--
DASCertificate for 206392

-- 

Insang Hwang, Phd. in Economics
Senior Associate Professor
--------------------------------
Economics and Business Department
International Christian University
Osawa 3-10-2, Mitaka, Tokyo
Japan 181-8585
tel: 0422-33-3181
e-mail: address@hidden
---------------------------------

reply via email to

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