File Exchange

image thumbnail

Pseudo Enumerations

version (5.31 KB) by

Create, manipulate and display arrays with enumeration values

1 Download


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.

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

MATLAB Release
MATLAB 6.0 (R12)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video