CreateGuid MEX

MEX to create a Globally Unique Identifier GUID
818 Downloads
Updated 15 Jan 2007

View License

A MEX file to calculate a GUID. A Globally Unique Identifier or GUID is a pseudo-random number used in software applications. Each generated GUID is "statistically guaranteed" to be unique. This is based on the simple principle that the total number of unique keys ( or ) is so large that the possibility of the same number being generated twice is virtually zero.

To compile:

mex CreateGuid.c rpcrt4.lib

I also tried to implement with .net but I found it to be much slower when needing a lot of GUIDs.

Cite As

Stephen Lienhard (2024). CreateGuid MEX (https://www.mathworks.com/matlabcentral/fileexchange/13652-createguid-mex), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Migrate GUIDE Apps in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0