First Steps into Octave

Michael Goffioul michael.goffioul at gmail.com
Wed Jul 2 03:11:10 CDT 2008


On Wed, Jul 2, 2008 at 9:03 AM, Goebel, Juergen <juergen.goebel at eads.com> wrote:
> Hi,
>
> Doing my first steps into Octave I ran into the following problem.
> I need the function pwelch (written by Peter V. Lanspeary), which
> I found during a www-search.  After saving it to my m-file-directory
> I thought that I may use it by simply invoking pwelch from another
> m-file.  This is, the general structure looks something like this:
>
> function result = test (foo)
> s = something
> S = pwelch (s);
> endfunction;
>
> test.m resides in the same directory as pwelch.  But running
> test.m results in an error message "pwelch undefined ...".
>
> Where is my mistake?

The directory where you put pwelch.m is probably not in octave
path. Type "path" at octave prompt to see the current octave
path. All m-files located in those directories are available to
octave. You can add pathnames with the function "addpath".

Michael.


More information about the Help-octave mailing list