Engineering > QUESTIONS & ANSWERS > Matlab for Engineers, 5th Edition Chapter 8 Homework Solutions Homework_5th_Edition (All)
Matlab for Engineers, 5th Edition Chapter 8 Homework Solutions clear,clc,close all Problem 8.1 A sensor that monitors the temperature of a backyard hot tub records the data shown in Table 8.5. ho... t_tub=[100,101,102,103,103,104,104,105,106,... 106,106,105,104,103,101,100,99,100,102,... 104,106,107,105,104,104]; % or load hot_tub.dat time = 0:1:24; (a) The temperature should never exceed 105°F. Use the find function to find the index numbers of the temperatures that exceed the maximum allowable temperature. element_high=find(hot_tub>105) element_high = 9.00 10.00 11.00 21.00 22.00 (b) Use the lengthfunction with the results from part (a) to determine how many times the maximum allowable temperature was exceeded. length(find(hot_tub>105)) ans = 5.00 (c) Determine at what times the temperature exceeded the maximum allowable temperature, using the index numbers found in part (a). time(element_high) ans = 8.00 9.00 10.00 20.00 21.00 (d) The temperature should never be lower than 102°F. Use the find function together with the length function to determine how many times the temperature was less than the minimum allowable temperature. length(find(hot_tub<102)) ans = 6.00 (e) Determine at what times the temperature was less than the minimum allowable temperature. element_low=find(hot_tub<102); time(element_low) [Show More]
Last updated: 2 years ago
Preview 1 out of 27 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
May 16, 2021
Number of pages
27
Written in
This document has been written for:
Uploaded
May 16, 2021
Downloads
0
Views
96
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·