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