diff --git a/+PlotID/removePltIdFiles.m b/+PlotID/removePltIdFiles.m index 37ef1827ad2049bd261780e4d190f05907a7b676..7a5703cb492355127dd4b18d8194da9c6d9a2272 100644 --- a/+PlotID/removePltIdFiles.m +++ b/+PlotID/removePltIdFiles.m @@ -1,19 +1,15 @@ function [fListClean] = removePltIdFiles(fList) %removePltIdFiles removes functions that are part of PlotID out of flist % Detailed explanation goes here -%addpath('..\fcn_core'); [~,names,ext] = fileparts(fList); names = strcat(names, ext); % add ext for comparison % Get a list of all .m files that are part of Plot id -PltID_flist = struct2table(dir('+PlotID')); %get list of files -[~,~,PltID_flist.ext(:)] = fileparts(PltID_flist.name(:)); % add ext column - -PltID_flist = PltID_flist(strcmp(PltID_flist.ext,'.m'),:); +packageContent = what('PlotID'); +PltID_flist = packageContent.m; %get list of files % Comparison and filter -fListClean = fList(~ismember(names,PltID_flist.name)); - +fListClean = fList(~ismember(names,PltID_flist)); end