help-octave
[Top][All Lists]
Advanced

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

Re: Running external program from Octave


From: Carlo De Falco
Subject: Re: Running external program from Octave
Date: Thu, 28 Apr 2016 09:03:19 +0000

On 28 Apr 2016, at 10:32, Lester Anderson <address@hidden> wrote:

> Hello,
> 
> Is there a way to run an external program from within an Octave .m
> file? I am using 4.0.2 on Windows, and would like to integrate GMT to
> do processing and pass the result back to the main Matlab.
> 
> Is the a function equivalent to say:
> 
> dos('grdfft test.grd -Gfft.grd -N500/500')
> 
> netc
> 
> so the GMT program grdfft runs and generates a netCDF file (fft.grd)
> which can then be read into Octave (via netcdf package).
> 
> Thanks
> Lester

Is this section of the manual useful for answering your question?

http://www.gnu.org/software/octave/doc/interpreter/Controlling-Subprocesses.html#Controlling-Subprocesses


c.


reply via email to

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