Skip to content
Snippets Groups Projects

Fix #52

Merged Lemmer, Jan requested to merge 52-bug-in-removepltidfiles into development
1 file
+ 3
7
Compare changes
  • Side-by-side
  • Inline
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
Loading