[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: First Steps into Octave
From: |
Michael Goffioul |
Subject: |
Re: First Steps into Octave |
Date: |
Wed, 2 Jul 2008 10:11:10 +0200 |
On Wed, Jul 2, 2008 at 9:03 AM, Goebel, Juergen <address@hidden> 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.