comparison scripts/signal/periodogram.m @ 19631:db92e7e28e1f

strip trailing whitespace from most source files * NEWS, doc/interpreter/contributors.in, doc/interpreter/func.txi, doc/interpreter/genpropdoc.m, doc/interpreter/octave_logo.eps, doc/interpreter/plot.txi, doc/interpreter/stmt.txi, examples/data/Makefile.am, libinterp/corefcn/data.cc, libinterp/corefcn/debug.cc, libinterp/corefcn/error.cc, libinterp/corefcn/file-io.cc, libinterp/corefcn/gl-render.cc, libinterp/corefcn/graphics.cc, libinterp/corefcn/graphics.in.h, libinterp/corefcn/load-path.cc, libinterp/corefcn/pr-output.cc, libinterp/corefcn/pt-jit.cc, libinterp/corefcn/strfind.cc, libinterp/corefcn/toplev.cc, libinterp/corefcn/toplev.h, libinterp/corefcn/urlwrite.cc, libinterp/corefcn/variables.cc, libinterp/octave-value/ov-classdef.cc, libinterp/octave-value/ov-classdef.h, libinterp/octave.cc, libinterp/parse-tree/lex.h, libinterp/parse-tree/oct-parse.in.yy, libinterp/parse-tree/pt-classdef.h, liboctave/system/file-ops.cc, liboctave/system/oct-env.cc, m4/acinclude.m4, scripts/deprecated/finite.m, scripts/deprecated/fmod.m, scripts/deprecated/fnmatch.m, scripts/deprecated/luinc.m, scripts/deprecated/octave_tmp_file_name.m, scripts/deprecated/syl.m, scripts/deprecated/usage.m, scripts/general/inputParser.m, scripts/general/interp1.m, scripts/general/interp2.m, scripts/general/interp3.m, scripts/general/isequal.m, scripts/general/private/__isequal__.m, scripts/geometry/voronoi.m, scripts/image/image.m, scripts/image/imshow.m, scripts/image/ind2rgb.m, scripts/linear-algebra/bandwidth.m, scripts/linear-algebra/isbanded.m, scripts/miscellaneous/bzip2.m, scripts/miscellaneous/cast.m, scripts/miscellaneous/copyfile.m, scripts/miscellaneous/delete.m, scripts/miscellaneous/fullfile.m, scripts/miscellaneous/getappdata.m, scripts/miscellaneous/gunzip.m, scripts/miscellaneous/isappdata.m, scripts/miscellaneous/ls.m, scripts/miscellaneous/mex.m, scripts/miscellaneous/movefile.m, scripts/miscellaneous/orderfields.m, scripts/miscellaneous/recycle.m, scripts/miscellaneous/rmappdata.m, scripts/miscellaneous/setfield.m, scripts/miscellaneous/symvar.m, scripts/miscellaneous/tar.m, scripts/miscellaneous/tmpnam.m, scripts/miscellaneous/unpack.m, scripts/miscellaneous/ver.m, scripts/miscellaneous/what.m, scripts/miscellaneous/xor.m, scripts/miscellaneous/zip.m, scripts/optimization/fminbnd.m, scripts/optimization/sqp.m, scripts/path/private/getsavepath.m, scripts/path/savepath.m, scripts/pkg/pkg.m, scripts/pkg/private/installed_packages.m, scripts/plot/draw/plotyy.m, scripts/plot/draw/polar.m, scripts/plot/draw/private/__quiver__.m, scripts/plot/draw/private/__scatter__.m, scripts/plot/draw/private/__stem__.m, scripts/plot/draw/surface.m, scripts/plot/draw/surfnorm.m, scripts/plot/util/copyobj.m, scripts/plot/util/hgload.m, scripts/plot/util/hgsave.m, scripts/plot/util/isprop.m, scripts/plot/util/linkprop.m, scripts/plot/util/private/__go_draw_axes__.m, scripts/set/setdiff.m, scripts/set/union.m, scripts/signal/periodogram.m, scripts/sparse/eigs.m, scripts/sparse/ilu.m, scripts/sparse/qmr.m, scripts/sparse/sprand.m, scripts/sparse/sprandn.m, scripts/specfun/beta.m, scripts/specfun/ellipke.m, scripts/specfun/isprime.m, scripts/statistics/base/lscov.m, scripts/testfun/__run_test_suite__.m, scripts/testfun/test.m: Strip trailing whitespace.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2015 10:29:54 -0500
parents 0f9c5a15c8fa
children 4197fc428c7d
comparison
equal deleted inserted replaced
19630:0e1f5a750d00 19631:db92e7e28e1f
42 ## window is used. Otherwise, the window is applied to the signal 42 ## window is used. Otherwise, the window is applied to the signal
43 ## (@code{@var{x} .* @var{win}}) before computing the periodogram. The window 43 ## (@code{@var{x} .* @var{win}}) before computing the periodogram. The window
44 ## data must be a vector of the same length as @var{x}. 44 ## data must be a vector of the same length as @var{x}.
45 ## 45 ##
46 ## @item nfft 46 ## @item nfft
47 ## number of frequency bins. The default is 256 or the next higher power of 47 ## number of frequency bins. The default is 256 or the next higher power of
48 ## 2 greater than the length of @var{x} 48 ## 2 greater than the length of @var{x}
49 ## (@code{max (256, 2.^nextpow2 (length (x)))}). If @var{nfft} is greater 49 ## (@code{max (256, 2.^nextpow2 (length (x)))}). If @var{nfft} is greater
50 ## than the length of the input then @var{x} will be zero-padded to the length 50 ## than the length of the input then @var{x} will be zero-padded to the length
51 ## of @var{nfft}. 51 ## of @var{nfft}.
52 ## 52 ##
67 ## 67 ##
68 ## If a sampling frequency is specified, @var{Fs}, then the output frequencies 68 ## If a sampling frequency is specified, @var{Fs}, then the output frequencies
69 ## @var{f} will be in the range [0, @var{Fs}/2] or [0, @var{Fs}/2) for 69 ## @var{f} will be in the range [0, @var{Fs}/2] or [0, @var{Fs}/2) for
70 ## one-sided calculations. For two-sided calculations the range will be 70 ## one-sided calculations. For two-sided calculations the range will be
71 ## [0, @var{Fs}). 71 ## [0, @var{Fs}).
72 ## 72 ##
73 ## When called with no outputs the periodogram is immediately plotted in the 73 ## When called with no outputs the periodogram is immediately plotted in the
74 ## current figure window. 74 ## current figure window.
75 ## @seealso{fft} 75 ## @seealso{fft}
76 ## @end deftypefn 76 ## @end deftypefn
77 77
105 105
106 if (! isvector (x)) 106 if (! isvector (x))
107 error ("periodogram: X must be a real or complex vector"); 107 error ("periodogram: X must be a real or complex vector");
108 endif 108 endif
109 x = x(:); # Use column vectors from now on 109 x = x(:); # Use column vectors from now on
110 110
111 n = rows (x); 111 n = rows (x);
112 112
113 if (! isempty (window)) 113 if (! isempty (window))
114 if (! isvector (window) || length (window) != n) 114 if (! isvector (window) || length (window) != n)
115 error ("periodogram: WIN must be a vector of the same length as X"); 115 error ("periodogram: WIN must be a vector of the same length as X");