File Exchange

image thumbnail

UUID Generation

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


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 (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)


on linux, you can also use system('uuidgen'). On Windows, you can create a simple vbs script:

Brian Emery

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


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

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!