[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined "usagestr" in function Pwelch
From: |
Paul Kienzle |
Subject: |
Re: undefined "usagestr" in function Pwelch |
Date: |
Thu, 12 Sep 2002 22:33:09 -0400 |
On Thu, Sep 12, 2002 at 05:20:24PM -0600, Ajay Singh wrote:
> I am trying to calculate the power spectrum using the Pwelch function.
> I call the function with following arguments:
> [Pxx,Pci,w]=pwelch(y1,8192,2E6,[],[],[],'whole',[],'linear')
> 8192: no of data points
> sampling time =0.5 microseonds and hence, sample frequency:2MHz
>
> It returns me following error
>
> `usagestr' undefined near line 144 column 13
Thanks for the report.
>
> "usagestr" is not an user difined arguement for pwelch, so how can I
> define it? Or what could be the reason for this error?
Try dropping the extra []'s. The numbers are interpreted in positional
order: x, nfft, Fs, window, overlap, ci. There are six of them, and you
have have seven arguments that aren't strings.
The strings are interpreted in any order.
>
> Thanks for the help
>
> Ajay
>
>
>
>
>
>
>
>
>
> -------------------------------------------------------------
> 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
-------------------------------------------------------------