mathlab help plz Write a for loop that will test each temper


mathlab help plz

Write a for loop that will test each temperature in HotTubK: 2) and print a message it the temperature is outside of the range 101 to 105. That is, it would print the message four times for this data (100, 106, 106, 106). Make the loop work with HotTub being any length. Extra credit if the message includes the time and temperature, 20000 AM 102 60000 AM 104 11 0000 AM

Solution

hottub=input;

for(j=0;j<hottub.length;j++)

{

if(hottub[j]<101 || hottub[j]>106)

{

sprintf(\"message\");

}

}

 mathlab help plz Write a for loop that will test each temperature in HotTubK: 2) and print a message it the temperature is outside of the range 101 to 105. Tha

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site