Skip to content

Commit

Permalink
sig.Signal.trim returned wrong Sstart
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlar committed Jul 23, 2019
1 parent 1d2d0d2 commit ef7e46d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion +sig/@Signal/trim.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
% the main folder of the MiningSuite distribution.

function obj = trim(obj,where,threshold)
[obj.Ydata obj.Sstart] = sig.compute(@main,obj.Ydata,obj.sdata,where,threshold);
[obj.Ydata start] = sig.compute(@main,obj.Ydata,obj.sdata,where,threshold);
obj.Sstart = obj.Sstart + (start-1) / obj.Srate;
end


Expand Down

0 comments on commit ef7e46d

Please sign in to comment.