Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Treder committed Sep 6, 2012
1 parent 6461552 commit a651674
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion misc/opt_structToProplist.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%
% See also opt_proplistToStruct

if nargin==0
if nargin==0 || isempty(opt)
pl=[];
return
end
Expand Down
1 change: 0 additions & 1 deletion processing/proc_resample.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@

% Adjust marker if necessary
if N>0 && ~isempty(mrk)
%% *** HIER WEITER
mrk.time = mrk.time-Nt;
% Remove markers that refer to data that was cut-off the beginning or
% end
Expand Down
6 changes: 2 additions & 4 deletions processing/utils/procutil_getClassIndices.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@
% returns 2.
% this function is used, e.g., in mrk_selectClasses, mrk_mergeClasses

% bb 08/03, ida.first.fhg

if nargin==0,
clInd=[];
return
end

misc_checkType(className, 'STRUCT|CHAR');
misc_checkType(className, '!STRUCT|!CELL{CHAR}');


if isempty(varargin),
Expand Down Expand Up @@ -64,7 +62,7 @@
clInd= [];
for desiredClass= classes,
dc= desiredClass{1};
clInd= [clInd, str_patternmatch(dc, className)];
clInd= [clInd, find(strcmp(dc,className))];
end
end

Expand Down
2 changes: 1 addition & 1 deletion processing/utils/select_time_intervals.m
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
if isfield(epo_r, 'yUnit'),
ylabel(H.cb, sprintf('[%s]', epo_r.yUnit));
end
cidx= strpatternmatch(optVisu.markClab, epo_r.clab);
cidx= find(ismember(epo_r.clab,optVisu.markClab));
set(H.ax, 'YTick',cidx, 'YTickLabel',optVisu.markClab, ...
'TickLength',[0.005 0]);
if isdefault.xunit && isfield(epo_r, 'xUnit'),
Expand Down

0 comments on commit a651674

Please sign in to comment.