help-octave
[Top][All Lists]
Advanced

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

Re: start Octave from Matlab


From: Ben Abbott
Subject: Re: start Octave from Matlab
Date: Tue, 13 May 2014 09:31:11 -0400

On May 13, 2014, at 8:59 AM, Timo <address@hidden> wrote:

> On 05/13/2014 02:42 PM, c. wrote:
>> On 13 May 2014, at 13:16, Ben Abbott <address@hidden> wrote:
>> 
>>> On Linux, I don't think you have the DYLD* stuff,
>> yes, it has, you just have to change DYLD* to LD*, e.g. 
>> 
>> DYLD_LIBRARY_PATH  -->  LD_LIBRARY_PATH
>> 
>> c.
> 
> The issue was related to the "LD_*" definitions.
> The solution for me to execute a script in Octave from Matlab is to use
> the following code in Matlab:
> 
> cmd = 'octave --eval "SCRIPTNAME"';
> pre = 'LD_LIBRARY_PATH=""; LD_FRAMEWORK_PATH="";
> LD_FALLBACK_LIBRARY_PATH=""';
> system (sprintf ('%s %s', pre, cmd));
> 
> Thanks for the support, I consider the help request closed.
> Timo

Since Matlab includes their own variant of ghostscript and other utilities, I 
had included the PATH variable in my version.  I suggest you not bother with 
the PATH variable unless you encounter a problem (such as errors with the 
print() command).

Ben




reply via email to

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