필터 지우기
필터 지우기

How to add control to restore all default values in a live script?

조회 수: 26 (최근 30일)
Jacob Baier
Jacob Baier 2022년 3월 16일
편집: Nidhi Jain 2024년 6월 27일 4:22
I am attempting to add a simple control button that will restore all other controls to their default values. The point of this live script is to allow the user to modify all ten variables at their will, but I would like an easier reset than right-clicking each control and selecting "Restore Default Value". How can I accomplish this?

답변 (2개)

Nidhi Jain
Nidhi Jain 2022년 7월 12일
Hi Jacob,
Thank you for your interest in interactive controls. Currently, there is no way to reset all the interactive controls using a single option. But, this is something our development team is aware of and is considering. This feedback is useful, and we hope to address it in an upcoming release.
  댓글 수: 5
Justin Bell
Justin Bell 2024년 2월 8일
I'm still not seeing this as of 2024-prerelease, if it's in here I'd love to know where
Gokhan Pekcan
Gokhan Pekcan 2024년 3월 19일
편집: Gokhan Pekcan 2024년 3월 19일
PLEASE, it’s been over two years, something needs to be done.
Furthermore, one last used value from a “list” of item values appears in dropdown as a possible selectable value even though the “variable” that generates the list becomes an empty one. Dropdown must correctly update and show blank.

댓글을 달려면 로그인하십시오.


Nidhi Jain
Nidhi Jain 2024년 6월 26일 17:47
편집: Nidhi Jain 2024년 6월 27일 4:22
Hello,
Starting with R2024b, you can restore all interactive controls to their default values by right-clicking on any control and selecting "Restore Default Values for All Controls."
Feel free to try it out in the R2024b Prerelease. Let me know if you have any questions.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by