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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Merge requests
!12
PreRelease_V0.1
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
PreRelease_V0.1
development
into
master
Overview
3
Commits
76
Pipelines
2
Changes
28
Closed
PreRelease_V0.1
Lemmer, Jan
requested to merge
development
into
master
Oct 12, 2021
Overview
3
Commits
76
Pipelines
2
Changes
28
Merge Development into Master to prepare the prerelease V0.1
0
0
Merge request reports
Compare
master
version 3
e364a277
Oct 12, 2021
version 2
e364a277
Oct 12, 2021
version 1
85820716
Oct 12, 2021
master (base)
and
latest version
latest version
e364a277
76 commits,
Oct 12, 2021
version 3
e364a277
76 commits,
Oct 12, 2021
version 2
e364a277
76 commits,
Oct 12, 2021
version 1
85820716
75 commits,
Oct 12, 2021
28 files
+
983
−
240
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
28
fcn_core
/CreateID.m
→
+PlotID
/CreateID.m
+
24
−
18
View file @ e364a277
Edit in single-file editor
Open in Web IDE
function
[
ID
]
=
CreateID
(
method
)
%CreateID Creates an Identifier (char)
% Creates an (sometimes unique) identifier based on the selected method
% if no method is selected method 1 will be the default method
arguments
method
(
1
,
1
)
{
mustBeNumeric
}
=
1
end
switch
method
case
1
% UNIX Time in seconds as HEX
ID
=
posixtime
(
datetime
(
'now'
));
%get current Unix time
ID
=
dec2hex
(
int32
(
ID
));
% get it as Hex
pause
(
0.5
);
%Pausing for unique IDs
otherwise
error
(
'The requested method is not defined yet'
);
end
end
function
[
ID
]
=
CreateID
(
method
)
%CreateID Creates an identifier (char)
% Creates an (sometimes unique) identifier based on the selected method
% if no method is selected method 1 will be the default method
arguments
method
(
1
,
1
)
{
mustBeNumeric
}
=
1
end
switch
method
case
1
% UNIX Time in seconds as HEX
ID
=
posixtime
(
datetime
(
'now'
));
%get current Unix time
ID
=
dec2hex
(
int32
(
ID
));
% get it as Hex
pause
(
1
);
%Pausing for unique IDs
case
2
% random UUID from Java 128 bit
%Static factory to retrieve a type 4 (pseudo randomly generated) UUID.
% The UUID is generated using a cryptographically strong pseudo
% random number generator.
temp
=
java
.
util
.
UUID
.
randomUUID
;
ID
=
temp
.
toString
;
otherwise
error
(
'The requested method is not defined yet'
);
end
end
Loading