Revert back to default mask values?

5 views (last 30 days)
Victoria
Victoria on 24 Sep 2012
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 Comment
Kaustubha Govind
Kaustubha Govind on 24 Sep 2012
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. :)

Sign in to comment.

Answers (1)

Sachin Ganjare
Sachin Ganjare on 26 Sep 2012
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!!!

Products

Community Treasure Hunt

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

Start Hunting!