generate a unique ID
112 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
I have a function to generate packets (randomly) , and I want to affect to every generated packet a unique ID (an integer for example).
How can I do this in the simplest way ? Because I don't want to complicate more my simulator.
Thanks in advance.
0 Kommentare
Antworten (2)
GT
am 20 Nov. 2018
This has already been asked:
temp = java.util.UUID.randomUUID;
myuuid = temp.toString;
disp(myuuid)
0 Kommentare
Andrei Veldman
am 19 Jan. 2022
Bearbeitet: Andrei Veldman
am 19 Jan. 2022
...or, using pure Matlab:
[~,guid] = fileparts(tempname)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Function Creation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!