Clearing the Clutter of Constants in simulations

A suggestion to remove all persistent constants from Simulink models
6 Downloads
Updated 25 May 2022

View License

The primary aim is to demonstrate the need to eliminate setting any persistent constants in simulation and retrieve them from a database (a far better alternative to using MATLAB flat files) by using a S-function. Hence reduce the chance for errors and make the model more readable. Using a variation of earlier submitted material (Matlab Central submit # 72439 )

Cite As

Siamak Mohebbi (2024). Clearing the Clutter of Constants in simulations (https://www.mathworks.com/matlabcentral/fileexchange/91505-clearing-the-clutter-of-constants-in-simulations), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13SP2
Compatible with R11.1 to R14SP3
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Matlab Database Access Unleashed

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0

Per request of MathWorks File exchange administrator the content was update to include the .m file needed for database access portion of an Simulink Model.

1.0.0