Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Merge requests
!44
Update removePltIdFiles.m
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update removePltIdFiles.m
jan.lemmer-master-patch-52378
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Lemmer, Jan
requested to merge
jan.lemmer-master-patch-52378
into
master
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Bugfix
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
fb7ffd5c
1 commit,
3 years ago
1 file
+
15
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
+PlotID/removePltIdFiles.m
+
15
−
7
Options
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'
);
% packageContent.classes has no extensions
PltID_classlist
=
packageContent
.
classes
;
% Class Methods need to be listed in an additional function
Class_flist
=
cell
(
1
,
numel
(
packageContent
.
classes
));
%preallocate
for
i
=
1
:
numel
(
packageContent
.
classes
)
temp
=
what
([
'PlotID'
,
filesep
,
'@'
,
PltID_classlist
{
i
}]);
Class_flist
{
i
}
=
temp
.
m
;
end
Class_flist
=
vertcat
(
Class_flist
{:});
% all plotID .m files:
PltID_flist
=
[
packageContent
.
m
;
Class_flist
];
% Comparison and filter
fListClean
=
fList
(
~
ismember
(
names
,
PltID_flist
.
name
));
fListClean
=
fList
(
~
ismember
(
names
,
PltID_flist
));
end
Loading