Lamp & Labels | Building MATLAB Apps with App Designer | Part 3
HTML-код
- Опубликовано: 7 фев 2025
- Code:
value = app.EnterSensorDataEditField.Value;
switch value
case 10
app.StatusLabel.Text="Low";
app.Lamp.Color=[0,1,0];
case 20
app.StatusLabel.Text="Medium";
app.Lamp.Color=[1,1,0];
case 30
app.StatusLabel.Text="High";
app.Lamp.Color=[1,0,0];
end
Learn Complete Machine Learning & Data Science using MATLAB:
• Data Science & Machine...
Learn Digital Signal Processing using MATLAB:
• Digital Signal Process...
Learn Complete Image Processing & Computer Vision using MATLAB:
• Digital Image Processi...
🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY RUclips CHANNEL
#MATLAB #APPDesign
Hi sir, how to select a range for the colors of the lamp from 1 to 10 or from 10 to 20?