-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
In FindPhaseCoeff.m:
...
pk = findpeaks(phase_interval,2*pi*(0.9));
K = zeros(numel(timesample),1);
for k = 1:numel(pk.loc)
K = K+(timesample-pk.loc(k)>0)';
end
...
- The second argument in
findpeakstakes the sampling rate. What's2*pi*(0.9)doing here? pkis NOT a structure to have anylocattribute but a vector! So, rewrite as:
[~, loc] = findpeaks(phase_interval);
K = zeros(numel(timesample),1);
for k = 1:numel(loc)
K = K + (timesample - loc(k) > 0)';
end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels