Create multiple limits on input GUI
1 回表示 (過去 30 日間)
古いコメントを表示
Is there any way for me to create multiple limits on my edit field input in app design? So far this is what I tried out but this hasn't worked for me
switch app.From_Units_Temp.Value
case 'Celcius'
app.InitialValueEditField_Temp.Limits = [-273.15 Inf];
case 'Farenheit'
app.InitialValueEditField_Temp.Limits = [-459.67 Inf];
case 'Kelvin'
app.InitialValueEditField_Temp.Limits = [0 Inf];
case 'Rankine'
app.InitialValueEditField_Temp.Limits = [0 Inf];
end
0 件のコメント
回答 (1 件)
Avratanu Biswas
2020 年 11 月 27 日
Hi,
What if you use UIspinners instead of EditFields ? And set the limits out there.
3 件のコメント
Avratanu Biswas
2020 年 11 月 28 日
Sorry, then probably I din't get you . What's exactly your goal ? With UIspinner you can set your max and min limits (then the user has access to choose within that limit you assigned.), as you mentioned in your code (where you are using EditFieldbox).
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!