Skip to content

Commit

Permalink
MatlabAp/CocoApi.m: fixed small bug pointed out by jingyan1216
Browse files Browse the repository at this point in the history
  • Loading branch information
pdollar committed May 26, 2016
1 parent 619a67e commit 7b445d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MatlabAPI/CocoApi.m
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
[catNms,supNms,catIds] = getPrmDflt(varargin,def,1);
if(~isempty(catNms)), t = t(ismember({t.name},catNms)); end
if(~isempty(supNms)), t = t(ismember({t.supercategory},supNms)); end
if(~isempty(catIds)), t = t(ismember([t.ids],catIds)); end
if(~isempty(catIds)), t = t(ismember([t.id],catIds)); end
ids = [t.id];
end

Expand Down

0 comments on commit 7b445d5

Please sign in to comment.