Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ECheynet authored Jan 27, 2023
1 parent 83230b7 commit e4836d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AFDD.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@
ylabel('1st Singular values of the PSD matrix (db)')
Fp=[];% Frequencies related to selected peaks
while numel(Fp)<Nmodes
myRec=getrect; % Draw a rectangle around the peak
[~,P1]=min(abs(f-myRec(1)));
[~,P2]=min(abs(f-(myRec(1)+myRec(3))));
myRec=drawrectangle; % Draw a rectangle around the peak
[~,P1]=min(abs(f-myRec.Position(1)));
[~,P2]=min(abs(f-(myRec.Position(1)+myRec.Position(3))));
[~,P3]=max(S(P1:P2));
indPeak=P3+P1-1; % Frequency at the selected peak
scatter(f(indPeak),mag2db(S(indPeak)),'MarkerEdgeColor','b','MarkerFaceColor','b') % Mark this peak
Expand Down
Binary file modified Documentation.mlx
Binary file not shown.

0 comments on commit e4836d9

Please sign in to comment.