small updates from work pc
try to implement kalman filter for MPI mitigation
This commit is contained in:
@@ -284,7 +284,7 @@ classdef Signal
|
||||
N = 2^(nextpow2(length(obj.signal))-8);
|
||||
|
||||
[p_lin,w] = pwelch(obj.signal,hanning(N),N/2,N,obj.fs,"centered","power","mean");
|
||||
normalize = 1;
|
||||
normalize = 0;
|
||||
if normalize
|
||||
p_lin = p_lin./ max(p_lin);
|
||||
p_dbm = 10*log10(p_lin); %dB to dBm in case of "power"
|
||||
|
||||
Reference in New Issue
Block a user