help-octave
[Top][All Lists]
Advanced

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

Re: Adding .m into javaoctave


From: astie . darmayantie
Subject: Re: Adding .m into javaoctave
Date: Wed, 22 Aug 2012 09:11:51 +0000

Thank you sooo much for the enlightment! 
Soo the entire time I've done it wrongly :( 

Thanks to you I can fix it early.. Thank you :) 

It solved already :)
------Original Message------
From: Martin Helm
To: astie darmayantie
Cc: address@hidden
Subject: Re: Adding .m into javaoctave
Sent: Aug 22, 2012 4:07 PM

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;");



Sent from my BlackBerry®
powered by Sinyal Kuat INDOSAT

reply via email to

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