Thu 02 Sep 2010 07:16:21 PM UTC, comment #6:
You're not a very careful reader, then :) (admittedly, it's quite tersely written)
"When calling functions, put spaces after commas and before the calling parentheses"
"Enclose the if, while, until and switch conditions in parentheses, like in C"
|
Thu 02 Sep 2010 04:27:52 PM UTC, comment #5:
I read "Appendix D Contributing Guidelines"
http://www.gnu.org/software/octave//doc/interpreter/Contributing-Guidelines.html#Contributing-Guidelines
The only required change, I see is "end % if" -> "endif"
This file is attached.
A diff patch is not applicable, because it really modifies all existing code.
CHANGELOG
2010-09-02 Alois Schloegl <alois.schloegl@gmail.com>
The attached version extends the functionality of
periodogram.m, adds support for additional input
parameters, including, win, nfft, Fs and range.
This makes it compatible with the interface of ml.
(file #21377)
|
Fri 13 Aug 2010 10:43:02 AM UTC, original submission:
The attached version extends the functionality of
periodogram.m, adds support for additional input parameters, including, win, nfft, Fs and range. This makes it compatible with the interface of ml.
The following tests have been performed and show equivalent results (difference is less than a few eps).
x=mod(1:10,3)'-1;
periodogram(x)
Pxx=periodogram(x)
size(Pxx)
Pxx=periodogram(x,[],10)
[Pxx,w]=periodogram(x,[],10)
[Pxx,f]=periodogram(x,[],10,[])
[Pxx,f]=periodogram(x,[],10,100)
[Pxx,f]=periodogram(x,[],'twosided',10,100)
x=mod(1:1001,3)'-1;
periodogram(x)
Pxx=periodogram(x)
size(Pxx)
x=mod(1:1024,3)'-1;
periodogram(x)
Pxx=periodogram(x)
size(Pxx)
A similar patch has been submitted here,
https://savannah.gnu.org/patch/?7236
Obviously, it has not been processed and would be obsolete by now.
Alois
|