Revert back to default mask values?

1 visualización (últimos 30 días)
Victoria
Victoria el 24 de Sept. de 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 comentario
Kaustubha Govind
Kaustubha Govind el 24 de Sept. de 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. :)

Iniciar sesión para comentar.

Respuestas (1)

Sachin Ganjare
Sachin Ganjare el 26 de Sept. de 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!!!

Categorías

Más información sobre Subsystems en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by