File Exchange

image thumbnail

Pseudo Enumerations

version (5.31 KB) by Ben Hinkle
Create, manipulate and display arrays with enumeration values

1 Download

Updated 01 Sep 2016

View License

Enumerations are lists of identifiers used as data values. For example the list of US states MA, NY, etc form an enumeration. Another enumeration, with one value, is a "NoData" enumeration. Pseudo enumerations are a way of implementing a form of enumerations purely in MATLAB m-code. The submission includes 2 files penum.m and dispe.m which define and display pseudo enumerations. See the m-file help for usage and examples.

Cite As

Ben Hinkle (2020). Pseudo Enumerations (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)


Good code, just like the one u provide for DMD. ;)

David Salzberg

Works great when porting C code to matlab!

Irtaza Barlas

Ah! A savior for C programmers...

M. L. Lott


Updated license

add 2003- to copyright

BSD update

submitted wrong version. try again.

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