Skip to content

Commit

Permalink
sig.Signal.get.peakval: apparently, some problem of conversion of cel…
Browse files Browse the repository at this point in the history
…l array input, to be checked..
  • Loading branch information
olivierlar committed Jan 14, 2019
1 parent 1c7df1d commit b5fcfd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion +sig/@Signal/Signal.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
% settings), and providing standard post-processing operations, as well as
% by sig.evaleach.
%
% Copyright (C) 2014, 2017-2018 Olivier Lartillot
% Copyright (C) 2014, 2017-2019 Olivier Lartillot
% All rights reserved.
% License: New BSD License. See full text of the license in LICENSE.txt in
% the main folder of the MiningSuite distribution.
Expand Down Expand Up @@ -619,6 +619,9 @@

function d = peakroutine(d,v)
d = d{1};
if iscell(d) % Check
d = d{1};
end
row = isrow(d);
d = v(d);
d = d(:);
Expand Down

0 comments on commit b5fcfd8

Please sign in to comment.