[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding .m into javaoctave
From: |
Martin Helm |
Subject: |
Re: Adding .m into javaoctave |
Date: |
Wed, 22 Aug 2012 11:07:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
Am 22.08.2012 10:53, schrieb astie darmayantie:
> Please mind my question about the error i had from load function.
> I just know that load was used to data form a file to a variable in
> octave.
> the question is how can i load my own function within javaoctave? for
> i already put my .m function file inside the octave/image-1.0.15
> package. or should i put it on the octave core? thank you
>
That is the completely wrong way doing it and it is wrong whether you
use octave with or without javaoctave, you do not put anything inside
the packages or the core directories!
put it let's say in /home/astie/myoctavescripts or whatever you want to
call it and for example
octave.eval("cd /home/astie/myoctavescripts;");
octave.eval("mainProg2108");
By the way this is utter nonsense you cannot "load" a m script file!!!
Try that directly in octave and see what happens.
octave.eval("load /home/astie/octave/image-1.0.15/mainProg2108.m;");
Instead you can "run" it
octave.eval("run /home/astie/octave/image-1.0.15/mainProg2108.m;");
Re: Adding .m into javaoctave, astie . darmayantie, 2012/08/22