Question: (MATLAB) design an application to convert temperature from Celsius to Fahrenheit and vice versa, the interface of the application is shown in Figure 1. The
(MATLAB)
design an application to convert temperature from Celsius to Fahrenheit and vice versa, the interface of the application is shown in Figure 1. The equations to convert between Celsius and Fahrenheit are:
T(F) = T(C) 9/5 + 32
T(C) = (T(F) - 32) 5/9
1- Write a function call it convertTemp to convert between Fahrenheit and Celsius, the function has a switch-case statement to convert either form Fahrenheit to Celsius or form Celsius to Fahrenheit.
2- Design the GUI interface with GUIDE. For more information on GUIDE see:
https://www.mathworks.com/videos/creating-a-gui-with-guide-68979.html
3- When a temperature value is entered into a text field of the GUI, the function convertTemp will be called. The output is displayed on the text field and the thermometer value is changed accordingly.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
