Bug#373194: [Pkg-octave-devel] Bug#373194: octave-forge: pwelch while checking for some arguments

Francesco Potorti` Potorti at isti.cnr.it
Fri Jun 30 12:20:28 UTC 2006


>> Contrary to what the docs say, pwelch cannot be given default values for
>> the 7th and 8th arguments.  This call fails:
>> 
>> pwelch (yy,[],1000,[],[],0,[],[],'linear')
>
>Can you provide a (non) working test? All I get is 
>"error: `usagestr' undefined near line 150 column 13"

This one works:

  pwelch (sin(1:1000)+rand(1,1000),[],1000,[],[],0,'half','db','linear')

while this one should, but does not:

  pwelch (sin(1:1000)+rand(1,1000),[],1000,[],[],0,[],[],'linear')


Yes, the error is like the one you mention, but even if you go and
correct the trivial bug that gives this error, you find out that most of
the code checking for arguments should be rewritten.

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: Potorti at isti.cnr.it
Web: http://fly.isti.cnr.it/           Key:   fly.isti.cnr.it/public.key





More information about the Pkg-octave-devel mailing list