removePltIdFiles removes functions that are part of PlotID out of flist Detailed explanation goes here addpath('..\fcn_core');
0001 function [fListClean] = removePltIdFiles(fList) 0002 %removePltIdFiles removes functions that are part of PlotID out of flist 0003 % Detailed explanation goes here 0004 %addpath('..\fcn_core'); 0005 0006 [~,names,ext] = fileparts(fList); 0007 names = strcat(names, ext); % add ext for comparison 0008 0009 % Get a list of all .m files that are part of Plot id 0010 PltID_flist = struct2table([dir('fcn_help'); dir('fcn_core')]); %get list of files 0011 [~,~,PltID_flist.ext(:)] = fileparts(PltID_flist.name(:)); % add ext column 0012 0013 PltID_flist = PltID_flist(strcmp(PltID_flist.ext,'.m'),:); 0014 0015 % Comparison and filter 0016 fListClean = fList(~ismember(names,PltID_flist.name)); 0017 0018 end 0019