[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newbie questions...
From: |
Jun Ohta |
Subject: |
Re: Newbie questions... |
Date: |
Thu, 18 Aug 2005 18:48:06 +0900 |
>>If your m-files are put in "c:\octave", you can use those functions after the
>>following
>>command.
>>
>>path( [':/cygdrive/c/octave//'] )
In my previous attempt, "edit" function didn't work for M-files in
directories beginning at "/cygdrive/c" as above. The following is my
suggestion.
When you examine the content of "DEFAULT_LOADPATH", you will find
directories followed by "//". When you execute functions, any
subdirectories of those directories will be examined for existence of
M-files by octave.
>> DEFAULT_LOADPATH
DEFAULT_LOADPATH = .:/opt/octave/libexec/octave/2.1.50/site/oct/i686-
pc-cygwin//:/opt/octave/libexec/octave/site/oct/i686-pc-cygwin//:/opt/
octave/share/octave/2.1.50/site/m//:/opt/octave/share/octave/site/m//:
/opt/octave/libexec/octave/2.1.50/oct/i686-pc-cygwin//:/opt/octave/
share/octave/2.1.50/m//
So, in this case, the following directory is a candidate for your M-
file directory.
C:\Program Files\GNU Octave 2.1.50\opt\octave\share\octave\2.1.50\m\
user
Jun
Jun Ohta <address@hidden> wrote:
(2005/08/18 17:57)
>Hello,
>
>'edit' function works for editors for MS windows. I will correct my
>previous statement. The following command worked.
>
>>> OCTAVE_VERSION
>OCTAVE_VERSION = 2.1.50
>>> computer
>i686-pc-cygwin
>>> edit('EDITOR',['notepad ', ' c:/"Program Files"/"GNU Octave 2.1.50"', '%s'])
>>> edit('union')
>
>I will add the following line to my ".octaverc".
>
>edit('EDITOR',['c:/"Program Files"/EmEditor/emeditor ', ' c:/"Program
>Files"/"GNU Octave 2.1.50"', '%s'])
>
>"EmEditor" is the editor I am using. "Sc1.exe" looks very nice. Later
>I will try it more.
>
>Jun
>
>
>Jun Ohta <address@hidden> wrote:
>(2005/08/18 15:48)
>
>>Hello,
>>
>>'edit' function uses the following M-file:
>>"/opt/octave/share/octave/2.1.50/site/m/octave-forge/miscellaneous/edit.m".
>>
>>I hadn't used this function on MS windows. But, I tried to use it there. It
>>seemed to
>>generate M-file names with path for the default editor. But, the resulting
>>file names wih
>>path seemed to be suitable for editors on cygwin (not suitable for notepad on
>>MS windows).
>>
>>I usually edit M-files from Explorer on MS windows.
>>If your m-files are put in "c:\octave", you can use those functions after the
>>following
>>command.
>>
>>path( [':/cygdrive/c/octave//'] )
>>
>>To conduct the above command at every octave startup, I use an ".octaverc" or
>>"octaverc"
>>file which have the above command line. See your manual (HTML) for "Startup
>>Files" in
>>"Getting Started".
>>
>>Jun Ohta
>>Okayama University
>>
>>address@hidden wrote:
>>>
>>>I'm using Octave 2.1.50 (installed with one click)....and am having the
>>>sort
>>>of problems one encounters with a new system.... I'm an experienced MATLAB
>>>user....and am now trying to get up to speed (about 5 mph) with Octave...
>>>
>>>1...I can't get the edit function to work.... I found the DEFAULT_LOADPATH
>>>variable and some m-libraries, and can use Notepad to create an m-file
>>>function
>>> in one of these libraries and this works OK, Octave finds the function when
>>>I execute it, but edit(fun) ...where fun is the function name... generates
>>>a
>>>slew of errors. So, how does one use edit ????? Where should one put
>>>m-files, etc.
>>>
>>>2. A simple plot has a Line1 and a red line in the upper right
>>>corner....can that be omitted ...
>>>
>>>
>>>Thanks,
>>>WDF
>>>
>>
>>
>>
>>-------------------------------------------------------------
>>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
-------------------------------------------------------------