Assigning simulink.parameter storage class from a function
2 views (last 30 days)
Show older comments
Hi!
I would like to change the storage class of a simulink.parameter type variable (var1) from within a function. The variable is defined in the workspace in a list called my_param_list and looks as shown bellow:
my_param_list = {var1, var2}
function [some_output] = name(some_input)
assignin('base', [my_param_list(1) '.CoderInfo.StorageClass'], 'ExportedGlobal')
end
Thank you!
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Characters and Strings 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!