Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to let a numerical field to be assigned preferrentially by user input?

1 回表示 (過去 30 日間)
Leon
Leon 2019 年 12 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I'm designing a GUI app using App-Designer, and below is what I want for two numerical fields, i.e., the min depth and max depth of a plot.
If a user does not input anything, the values will be automatifcally generated based on the data. The next time when the same button is clicked, it will use either the previously generated min and max values, or the user modified values. I do this so that a user can "zoom in" to a specific depth range for the plots.
Is this possible?

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 12 月 16 日
Just always fetch the current version of the field; if the user hasn't modified the values since the last time then they will be the same as they were. Initialize at appropriate times.

この質問は閉じられています。

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by