From 7b445d523efe374c84774a9c8d080283cae7edde Mon Sep 17 00:00:00 2001 From: pdollar Date: Thu, 26 May 2016 15:21:36 -0700 Subject: [PATCH] MatlabAp/CocoApi.m: fixed small bug pointed out by jingyan1216 --- MatlabAPI/CocoApi.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MatlabAPI/CocoApi.m b/MatlabAPI/CocoApi.m index b92cadfb..88e07913 100644 --- a/MatlabAPI/CocoApi.m +++ b/MatlabAPI/CocoApi.m @@ -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