What is the advantage of defining a variable as workspace object?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
What is the advantage of defining a variable as workspace object using simulink.parameter over directly defining a variable (as x = 2)?
Any article or documentation for same will be highly helpful.
Thanks.
0 Kommentare
Antworten (1)
Kaustubha Govind
am 4 Okt. 2013
Using just a regular variable allows you to define a value for a parameter. However, using a Simulink.Parameter object allows you to specify a lot of other information (see the previous link), like "the parameter's purpose, its dimensions, or its minimum and maximum values". There are additional fields like 'Storage class' and 'Alignment' which are used to achieve advanced features in code generation.
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!