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
Commits
fb7ffd5c
Commit
fb7ffd5c
authored
3 years ago
by
Lemmer, Jan
Browse files
Options
Downloads
Patches
Plain Diff
Update removePltIdFiles.m
parent
c7256d2d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!44
Update removePltIdFiles.m
Pipeline
#601264
failed
3 years ago
Stage: Run
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
+PlotID/removePltIdFiles.m
+15
-7
15 additions, 7 deletions
+PlotID/removePltIdFiles.m
with
15 additions
and
7 deletions
+PlotID/removePltIdFiles.m
+
15
−
7
View file @
fb7ffd5c
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment