File Exchange

image thumbnail

UUID Generation

version 1.0.0.0 (12.8 KB) by Dahua Lin
For generating UUID in MATLAB

6 Downloads

Updated 10 Oct 2008

View License

This is a simple tool for generating universal unique identifiers (UUID) in MATLAB programs.

Many applications require UUID to identify things uniquely. However, MATLAB has not offered such function. I recognized this need when I was developing a matlab-based system, and thus developed this tool.

The tool supports both windows and Linux.

Cite As

Dahua Lin (2020). UUID Generation (https://www.mathworks.com/matlabcentral/fileexchange/21709-uuid-generation), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

M

on linux, you can also use system('uuidgen'). On Windows, you can create a simple vbs script: http://superuser.com/questions/155740/how-can-i-generate-a-uuid-from-the-command-line-in-windows-xp

Brian Emery

another option (for mac users at least):
[s,UUID] = system('uuidgen');

A W

For those who run newer versions of MATLAB with the JVM installed, there is a simple one-liner:

UUID = java.util.UUID.randomUUID

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Simple Network Information Server (SNIS)

Community Treasure Hunt

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

Start Hunting!