Skip to content

Commit

Permalink
Fixed a little bug. urepet is operational.
Browse files Browse the repository at this point in the history
  • Loading branch information
zafarrafii committed Oct 24, 2018
1 parent 5c0345e commit 45e4955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions urepet.m
@@ -1,6 +1,6 @@
function urepet
% UREPET a simple user interface system for recovering patterns repeating
% in time and frequency in mixtures of sounds
% UREPET Simple user interface system for recovering patterns repeating in
% time and frequency in mixtures of sounds
%
% Toolbar:
% Open: Open audio file (as .wav or .mp3)
Expand Down Expand Up @@ -356,8 +356,8 @@ function spectrogramaxesbuttondownfcn(~,~)
% Clicked callback function for the uREPET button
function urepetclickedcallback(~,~)

% If the rectangle object is empty, return
if isempty(rectangle_object)
% If the rectangle object is empty or not valid, return
if isempty(rectangle_object) || ~isvalid(rectangle_object)
return
end

Expand Down

0 comments on commit 45e4955

Please sign in to comment.