Question: using matlab write the code 1. The following equation describes the process of warming a hot tub by adding hot water: T = T(IN) (T(IN)
using matlab write the code
1. The following equation describes the process of warming a hot tub by adding hot water: T = T(IN) (T(IN) T(START)) e^(Q/V) t where: T is the temperature of the water in the hot tub T(IN) is the temperature of the water flowing into the hot tub, (130F) T(START) is the initial temperature of the water in the hot tub (65F) Q is the hot-water flow rate (5 gpm) V is the volume of the hot tub (500 gallons), and t is the elapsed time since the hot water started flowing a.) Create an x-y plot that shows how the hot tub water temperature (T) increases over time (t). Your temperatures should be plotted from 65F up to 110F. You may have to extend your time vector until it causes the temperature to exceed 110F. Identify each major temperature data point (increments of 5F) on your plot. Add a textual annotation to your plot that lists the approximate time at which the tubs water temperature first reaches 110F.
b.) If the hot-water flow rate was increased to 10 gpm, how long would it take for the water temperature in the tub to reach 110F? Again, you may have to extend your time vector until it causes the temperature to exceed 110F. Have MATLAB draw a second plot, representing this second set of data on the same graph as the first plot. Add a second textual annotation for the second plot. Include a legend that identifies each plot.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
