[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45232] [octave forge] (signal) spectrogram fu
From: |
Chris Gorman |
Subject: |
[Octave-bug-tracker] [bug #45232] [octave forge] (signal) spectrogram function to replace legacy specgram function |
Date: |
Sat, 9 Nov 2019 11:28:53 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/78.0.3904.70 Chrome/78.0.3904.70 Safari/537.36 |
Follow-up Comment #4, bug #45232 (project octave):
Hi John (and Mike),
Just trying out the spectrogram function you wrote. (Thanks for all the hard
work.) I would like to comment on it.
First off running `help spectrogram` gets the following errors for me.
octave:26> help spectrogram
/tmp/octave-help-Wnvppb:125: misplaced }
/tmp/octave-help-Wnvppb:170: table requires an argument: the formatter for
@item
/tmp/octave-help-Wnvppb:187: superfluous argument to @end ifinfo: . (possibly
involving @seealso)
/tmp/octave-help-Wnvppb:196: table requires an argument: the formatter for
@item
/tmp/octave-help-Wnvppb:199: table requires an argument: the formatter for
@item
/tmp/octave-help-Wnvppb:199: no matching `@end table'
/tmp/octave-help-Wnvppb:199: bad argument to @end: @table
/tmp/octave-help-Wnvppb:268: `@end' expected `table', but saw `deftypefn'
Are there some installation instructions I need to follow? All I did was copy
the function to the current working directory and tried to run it. After the
errors, the function description follows.
Next, running without setting the command equal to a variable fails to
generate a plot for me. I tried the first example at
https://www.mathworks.com/help/signal/ref/spectrogram.html and I get the
following.
octave:27> N = 1024;
octave:28> n = 0:N-1;
octave:29>
octave:29> w0 = 2*pi/5;
octave:30> x = sin(w0*n)+10*sin(2*w0*n);
octave:31> s = spectrogram(x);
octave:32>
octave:32> spectrogram(x,'yaxis')
error: pwelch: string arg 6 illegal value: psd
error: called from
pwelch at line 442 column 11
spectrogram at line 235 column 19
How do I generate a plot of the data?
I can try out patches, or new versions if you like. But next week I am busy,
so expect some delays in my response times. Again thanks for all the hard
work you've put into octave and thanks in advance for instructions on how to
use spectrogram.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?45232>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45232] [octave forge] (signal) spectrogram function to replace legacy specgram function,
Chris Gorman <=