help-octave
[Top][All Lists]
Advanced

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

Re: How to open a .m File


From: Geordie McBain
Subject: Re: How to open a .m File
Date: Fri, 31 Mar 2006 10:03:31 +1000

Like with the function "type"?  For example:

- - -
address@hidden:/tmp$ cat g.m
function z = g (x, y)
  z = x.^2 + y.^2;
endfunction
address@hidden:/tmp$ octave2.9 -q
octave2.9:1> type g
g is the user-defined function defined from: /tmp/g.m

function z = g (x, y)
  z = x.^2 + y.^2;
endfunction
octave2.9:2>
- - -

On Fri, 2006-03-31 at 01:40 +0200, Markus Feldmann wrote:
> Steve C. Thompson wrote:
> > An m-file is just a text file so you can edit it with any text
> > editor.  If you don't yet have a favorite, there are many to
> > experiment with.  gedit or kate are easy to use.  At the shell
> > try,
> > 
> >   gedit test.m
> > 
> > or
> > 
> >   kate test.m
> > 
> thanks,
> 
> I understand.
> But can I open this file over octave directly?
> 
> mfg Markus
> 
> 
> 
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
> 



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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