Question

In: Mechanical Engineering

The following table gives temperature data in *C as a function of time of day and day of the week at a specific location.

The following table gives temperature data in *C as a function of time of day and day of the week at a specific location. Data are missing for the entries marked with a question mark (?). Use linear interpolation with MATLAB to estimate the temperature at the missing points.

Day Hour Mon Tues Wed Thurs Fri 1 17 15 12 16 16 2 13 8 11 12 3 14 14 9. ? 15 4 17 15 14 15 19 23 18 17 20 24

Solutions

Expert Solution

Directly using the inbuilt function interpl() in MATLAB to find the values of missing data

%code to interpolate the values

clc
Tues = [15 14 15 18];%data given
x = interp1([1 3 4 5],Tues,2); %2 shows here the the 2nd place needs to be find

Thurs = [16 11 15 20];
y = interp1([1 2 4 5], Thurs,3);

 

Answer :

x = 14.5

  y = 13


x = 14.5

  y = 13

Related Solutions

What is the binding time for the following in C/C++ program. Explain. a. The location of...
What is the binding time for the following in C/C++ program. Explain. a. The location of memory of a local variable in a function. b. The meaning of the keyword while c. The size in memory of a variable of type int d. The location in memory of a global static variable e. The code for the printf function f. The type of local variable in a function g. The values assigned to a variable h. The size in memory...
Table 1: Temperature of Frozen Water Over Time Time (min.) Temperature (°C) Observation 0 -12 Water...
Table 1: Temperature of Frozen Water Over Time Time (min.) Temperature (°C) Observation 0 -12 Water is frozen 5 0 Water is frozen 10 1 Ice is attached to thermometer but unstuck from test tube 15 14 There is a pool of water in the bottom of the test tube 20 2 The pool of water is flightly bigger, ice chunk is getting smaller 25 4 The ice chunk is over halfway melted 30 5 The Ice chunk is over...
2.6 Collins temperature data (Data file: ftcollinstemp) The data file gives the mean temperature in the...
2.6 Collins temperature data (Data file: ftcollinstemp) The data file gives the mean temperature in the fall of each year, defined as Sep- tember 1 to November 30, and the mean temperature in the following winter, defined as December 1 to the end of February in the following calendar year, in degrees Fahrenheit, for Ft. Collins, CO (Colorado Climate Center, 2012). These data cover the time period from 1900 to 2010. The question of interest is: Does the average fall...
IV. The following table gives the frequency distribution of the number of hours spent per week...
IV. The following table gives the frequency distribution of the number of hours spent per week on activities that involve sports and/or exercise by a sample of 400 Americans. The numbers are consistent with the summary results from the Bureau of Labor Statistics' American Time Use Survey (www.bls.gov). Hours per Week Number of People 0 to less than 3.5 34 3.5 to less than 7.0 92 7.0 to less than 10.5 55 10.5 to less than 14.0 83 14.0 to...
What is the temperature on the winter day? On a warm summer day (33 ∘C), it...
What is the temperature on the winter day? On a warm summer day (33 ∘C), it takes 4.70 s for an echo to return from a cliff across a lake. On a winter day, it takes 5.10 s . The speed of sound in air is v≈(331+0.60T)m/s, where T is the temperature in ∘C.
Refer to the gasoline sales time series data in the given table. Week Sales (1,000s of...
Refer to the gasoline sales time series data in the given table. Week Sales (1,000s of gallons) 1 18 2 22 3 15 4 24 5 18 6 15 7 21 8 19 9 21 10 20 11 16 12 22 Compute four-week and five-week moving averages for the time series. If required, round your answers to two decimal places. Week Sales 4 Period Moving Average 5 period Moving Average 1 18 2 22 3 15 4 24 5 18...
Refer to the gasoline sales time series data in the given table. Week Sales (1,000s of...
Refer to the gasoline sales time series data in the given table. Week Sales (1,000s of gallons) 1 18 2 22 3 15 4 24 5 18 6 15 7 21 8 19 9 21 10 20 11 16 12 22 (a) Compute four-week and five-week moving averages for the time series. If required, round your answers to two decimal places. Week Sales 4 Period Moving Average 5 period Moving Average 1 18 2 22 3 15 4 24 5...
Refer to the gasoline sales time series data in the given table. Week Sales (1000s of...
Refer to the gasoline sales time series data in the given table. Week Sales (1000s of gallons) 1 18 2 22 3 18 4 24 5 19 6 16 7 21 8 19 9 22 10 19 11 16 12 23 Compute four-week and five-week moving averages for the time series. Round your answers to two decimal places. Week Sales 4-Week Moving Average 5-Week Moving Average 1 18 2 22 3 18 4 24 5 19 6 16 7 21...
Refer to the gasoline sales time series data in the given table. Week Sales (1,000s of...
Refer to the gasoline sales time series data in the given table. Week Sales (1,000s of gallons) 1 17 2 21 3 19 4 23 5 18 6 16 7 20 8 18 9 22 10 20 11 15 12 22 (a) Compute four-week and five-week moving averages for the time series. If required, round your answers to two decimal places. Week Sales 4 Period Moving Average 5 period Moving Average 1 17 2 21 3 19 4 23 5...
Refer to the gasoline sales time series data in the given table. Week Sales (1,000s of...
Refer to the gasoline sales time series data in the given table. Week Sales (1,000s of gallons) 1 17 2 23 3 14 4 25 5 17 6 16 7 22 8 19 9 21 10 19 11 17 12 23 (a) Compute four-week and five-week moving averages for the time series. If required, round your answers to two decimal places. Week Sales 4 Period Moving Average 5 period Moving Average 1 17 2 23 3 14 4 25 5...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT