- Drag and Drop 2 'Sliders' into the gui
- Add callback for each sliders
- Add a logic so that whenever the value of slider changes it compares with other sliders value and if it meets the above requirements it displays the message.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1792270/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1792275/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!