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 Center および File ExchangeSubsystems についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by