how to define a global parameter in a .m file in matlab
Show older comments
I know how to define a global parameter in base workspace. But when there are too many parameter I should define, I don't want to do it one by one in base workspace. How can I define all parameters directly in a .m file, include the initial value, range, data type, meaning and other information, thanks!
1 Comment
Kaustubha Govind
on 19 Jun 2013
If you're talking about Simulink parameters, please specify that.
Answers (1)
Azzi Abdelmalek
on 19 Jun 2013
global var1 var2 var3 ...
Categories
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!