App Designer - How do I set limits for different variables?

9 ビュー (過去 30 日間)
Taryn Bitzas
Taryn Bitzas 2021 年 5 月 6 日
回答済み: Shadaab Siddiqie 2021 年 6 月 17 日
Hello just wondering if someone can please help me.
Under the directiondropdown callback, I am wanting to set a limit of [-inf inf] for 'Temperature' unit types ie. 'Celcius to Farenheit' and 'Farenheit to Celcius' and a limit of [0 inf] for all other unit types ie. 'Pressure', 'Volume' and 'Energy'. When a user inputs a value, I am wanting the program to convert both negative and positive values for temperature, however only positive values for all other unit types. How do I go about this?
Thanks

回答 (1 件)

Shadaab Siddiqie
Shadaab Siddiqie 2021 年 6 月 17 日
From my understanding you want to set limits to variables in App Designer. You can user “Limits” property of uieditfield to set the limits. You can refer NumericEditField Properties for more information.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by