image thumbnail

Define/Undefine Constants

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

2.9K Downloads

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 (https://www.mathworks.com/matlabcentral/fileexchange/13622-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!