Skip to content
Snippets Groups Projects
Commit f4f7220f authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Merge branch '52-bug-in-removepltidfiles' into 'development'

Fix #52

See merge request !19
parents 28462239 ec73cd1d
No related branches found
No related tags found
2 merge requests!30Fix CI,!19Fix #52
Pipeline #569800 passed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment