JUK1
getHermitianData.m
Go to the documentation of this file.
1 function [hermitianFreq, hermitianData] = getHermitianData(posFreqs,posData)
2 %GETNEGATIVEFREQDATA Obtains the corresponding negative frequencies for an analytic
3 %signal
4 % Obtains the negative conjugate symmetric frequency domain data
5 % when supplied with positive freq data only.
6 % Note the positive frequency data should not contain the last points
7 % i.e. data(1) ~= data(end), otherwise periodicity will be broken.
8 
9 %Determine frequency resolution
10 deltaF = diff(posFreqs(1:2));
11 
12 %Create negative frequency and data vectors
13 negFreqs = -posFreqs(end:-1:2); %Don't include DC
14 negData = conj(posData(end:-1:2)); %negData is conjugate of posData
15 
16 %Remove highest frequency from positive freq and data vectors
17 posFreqs(end) = [];
18 posData(end) = [];
19 
20 hermitianFreq = [negFreqs(:); posFreqs(:)];
21 hermitianData = [negData(:); posData(:)];
22 end
23 
PURPOSE j at all freq
Definition: QPpassive.m:44
for i
otherwise periodicity will be broken Determine frequency resolution deltaF
Create negative frequency and data vectors negFreqs
posData(end)
negData is conjugate of posData Remove highest frequency from positive freq and data vectors posFreqs(end)