image thumbnail

Define/Undefine Constants

version (4.15 KB) by Ruben Faibish
Define and undefine constant variables with no use of global


Updated 12 Jan 2007

View License

these two functions define and undefine variable constants like the #define
preprocessor command in C.
No global variables are used.
Tested on R2006b
See help for each file

Cite As

Ruben Faibish (2022). Define/Undefine Constants (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!