8.1 A sensor that monitors the temperature of a backyard hot tub records the data in a file named temp_data2.dat where e
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
8.1 A sensor that monitors the temperature of a backyard hot tub records the data in a file named temp_data2.dat where e
questions: (a) The temperature should never exceed 105°F. Use the find function to find the row numbers of the temperatures that exceed the maximum allowable temperature. (hint: seperate the data into time and temperature vectors) (b) Use the length function with the results from part (a) to determine how many times the maximum allowable temperature was exceeded. (c) Determine at what times the temperature exceeded the maximum allowable temperature, using the index numbers found in part (a). (d) The temperature should never be lower than 102°F. Use the find func- tion together with the length function to determine how many times the temperature was less than the minimum allowable temperature. (e) Determine at what times the temperature was less than the minimum allowable temperature. (f) Determine at what times the temperature was within the allowable limits (i.e., between 102°F and 105°F, inclusive). (g) Use the max function to determine the maximum temperature reached and the time at which it occurred. Can you use matlab coding to solve this problem? Thank you
8.1 A sensor that monitors the temperature of a backyard hot tub records the data in a file named temp_data2.dat where each line in the file has the time of the reading followed by the temperature read. Read in this file (provided) and answer the following