Revert back to default mask values?

1 次查看(过去 30 天)
Victoria
Victoria 2012-9-24
I have a library with masked subsystems with default values for the mask dialogs. When someone makes a model using those subsystems, they change the values, but sometimes they need to go back to the default values. Is there a way to revert the mask parameters back to the default values (based on the subsystem mask values in the library) without having to delete the subsystem and reload from the library?
Thanks!!!!
  1 个评论
Kaustubha Govind
Kaustubha Govind 2012-9-24
AFAIK, there is no way to revert the changes currently, other than to delete the block and add it again. But I can't say with absolute certainty, which is why this is a comment and not an answer. :)

请先登录,再进行评论。

回答(1 个)

Sachin Ganjare
Sachin Ganjare 2012-9-26
I believe there is one workaround for this situation:
Instead actual default numeric values in mask, you can provide a variable whose values will be driven from separate .m file supplied with the library.
This way user can always retain the old values, by simply loading .m file containing variables initialized with all default values.
Hope it hepls!!!

类别

Help CenterFile Exchange 中查找有关 Subsystems 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by