No BSD License
-
Nelsonpower(signal, Fs, low, ...
computes the Nelson power spectrum and plots it together with the fft-computed
-
Nelsonpower(signal, Fs, low, ...
computes the Nelson power spectrum and plots it together with the fft-computed
-
Nelsonspec(signal, Fs, window...
Author: Sean Fulop
-
Nelsonspecjet_both(signal, Fs...
Author: Sean Fulop
-
Nelsonspecjet_bothm(signal, F...
Author: Sean Fulop
-
Nelsonspecm(signal, Fs, windo...
Author: Sean Fulop
-
arg(X)
arg(X) where X is a matrix of complex numbers, computes the argument or phase angle of x
-
hanning(len)
-
jet(m)
-
View all files
from
High resolution spectrographic routines
by Sean Fulop
Files for computing the reassigned power spectrum and spectrogram, going beyond Fourier analysis
|
| arg(X) |
% arg(X) where X is a matrix of complex numbers, computes the argument or phase angle of x
% but returns a value between 0 and 2pi, unlike the builtin Matlab angle function
% which returns the principle argument value as per standard between -pi and pi.
% the routine adds 2pi to negative angles returned by angle to accomplish this.
% the routine is needed for spectral analysis of matrices which have angular freq.
% encoded in compex phases; naturally the negative frequencies do not have the right
% physical interpretation.
function out = arg(X)
countj = 1;
for vec = X
counti = 1;
for x = vec.'
princarg = angle(x);
if sign(princarg) == -1
out(counti,countj) = princarg + 2.*pi;
else out(counti,countj) = princarg;
end
counti = counti + 1;
end
countj = countj + 1;
end
|
|
Contact us at files@mathworks.com