Knob for Matlab App Designer to move like the knob for a microwave

2 ビュー (過去 30 日間)
Josiah Jarenee Comia
Josiah Jarenee Comia 2021 年 10 月 26 日
回答済み: Steven Lord 2021 年 10 月 26 日
We want to make the knob to turn like the it does with a microwave timer, is it possible? How would we go about doing it?

回答 (1 件)

Steven Lord
Steven Lord 2021 年 10 月 26 日
Do you mean you want the value of the knob to decrease over time? You should be able to do that by changing its Value property, either in a for loop or using a timer object.
f = uifigure;
h = uiknob('Value', 100);
for k = 100:-1:0
h.Value = k;
pause(0.1);
end
load handel
sound(y,Fs)
Fill in your own beeping sound to indicate that the cooking time is done. [I would have made it take 100 seconds with a longer pause but like sometimes when I'm cooking something in the microwave I got impatient waiting :)]

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by