Can’t understand why Pwelch claims window is larger than input signal
segment_length = 1229;
hannw = hann(segment_length);
overlap_length = round(segment_length / 2);
disp(size(SuperTrialH2Hit))
returns 30 207701
[pxx4HH, hz4HH] = pwelch(SuperTrialH2Hit, hannw, overlap_length, nextpower2(numel(SuperTrialH2Hit)), SR);
returns
Error using signal.internal.spectral.welchparse>segment_info (line 345)
The length of the segments cannot be greater than the length of the input signal.
Error in signal.internal.spectral.welchparse (line 34)
[L,noverlap,win] = segment_info(M,winp,noverlap1);
Error in welch (line 56)
signal.internal.spectral.welchparse(x,esttype,args{:});
Error in pwelch (line 174)
[welchOut{1:nargout}] = welch(x,funcName,inputArgs{:});segment_length = 1229;
hannw = hann(segment_length);
overlap_length = round(segment_length / 2);
disp(size(SuperTrialH2Hit))
returns 30 207701
[pxx4HH, hz4HH] = pwelch(SuperTrialH2Hit, hannw, overlap_length, nextpower2(numel(SuperTrialH2Hit)), SR);
returns
Error using signal.internal.spectral.welchparse>segment_info (line 345)
The length of the segments cannot be greater than the length of the input signal.
Error in signal.internal.spectral.welchparse (line 34)
[L,noverlap,win] = segment_info(M,winp,noverlap1);
Error in welch (line 56)
signal.internal.spectral.welchparse(x,esttype,args{:});
Error in pwelch (line 174)
[welchOut{1:nargout}] = welch(x,funcName,inputArgs{:}); segment_length = 1229;
hannw = hann(segment_length);
overlap_length = round(segment_length / 2);
disp(size(SuperTrialH2Hit))
returns 30 207701
[pxx4HH, hz4HH] = pwelch(SuperTrialH2Hit, hannw, overlap_length, nextpower2(numel(SuperTrialH2Hit)), SR);
returns
Error using signal.internal.spectral.welchparse>segment_info (line 345)
The length of the segments cannot be greater than the length of the input signal.
Error in signal.internal.spectral.welchparse (line 34)
[L,noverlap,win] = segment_info(M,winp,noverlap1);
Error in welch (line 56)
signal.internal.spectral.welchparse(x,esttype,args{:});
Error in pwelch (line 174)
[welchOut{1:nargout}] = welch(x,funcName,inputArgs{:}); pwelch, psd, segement, signal processing MATLAB Answers — New Questions