Project – Data Analysis and User Interface Overview Your team will use the data previously logged and then save it as Excel files. Then MATLAB will be used to read in the data and produce plots and a...

1 answer below »
Need Help in Matlab.


Project – Data Analysis and User Interface Overview Your team will use the data previously logged and then save it as Excel files. Then MATLAB will be used to read in the data and produce plots and a user interface to make predictions about cooling objects. Data Entry  Open all of your CSV files in Excel 2016 and save them as worksheets in the Cool It Excel Workbook template file provided. Give the worksheets meaningful names and add the sheet names to the Data Summary sheet which already exists.  Using MATLAB, read the Data Summary sheet from the Excel file. Then using loops and the sheet names listed in the Data Summary sheet, read in the data from each of the sheets without hardcoding any sheet names, etc. Store each matrix in a cell of a cell array of size N x 2 (where N is the number of cylinders and spheres tested). The first column will contain the room temperature data matrix and the second column will contain the cooling data matrix.  Read data provided as an Excel file containing the Table 1: Material Properties worksheet to your MATLAB program.  Do not re‐arrange data or do any calculations in Excel.  You will submit your Excel file along with your MATLAB files. Analysis ‐ introduction All plots created in this project will include at least one logarithmic‐scale axis. Axis limits (minimum and maximum axis values) on logarithmic axes must be even powers of ten and which contain the full range of data being plotted. For example, axis limits of 0.1 to 10 are acceptable, while axis limits of 0.3 to 3 are not. Analysis – create two temperature‐decline plots We will assume temperature difference declines following an exponential decay curve (see Equation 2 on the first page). Although the exponent is expected to be negative, we will work with positive values for the cooling factor, r, by defining the exponent in the cooling equation to be –r. Create and use a user‐defined function, named as described in the Submission section below, to plot multiple data series on a proper plot of temperature change (ΔT) [°C] as a function of time (t) [min]. Avoid the mistake of plotting temperature vs. time! All proper‐plot rules (Chapter 11.2) apply. Make one or both axes logarithmic as needed to linearize the data (make it appear linear). Add an appropriate trendline (TL) to each data series. Review Chapters 12 and 13 for guidance on which TL type to select for your data. You only need to add one TL equation to each of your temperature change plots. The TL equation should not overlap any data markers of trendlines on your plot. Call this function twice to prepare two proper plots. Call the plotting function once to plot cooling data for all the uniform area spheres; and a second time to plot cooling data for all uniform mass & specific heat cylinders. Your code should identify which objects belong in each plot. Analysis – create two parameter plots The cooling factor, r, in units of minutes‐1 [1/min], is expected to be a function of the surface area of the object, A, the convective heat transfer coefficient, h, (which we will assume is the same in each of our experiments) and the total heat capacity, m CP (see Equation 3 on page 1). Expressed mathematically, r = f(A, h, m CP). Create a second user‐defined function, named as described in the Submission section below, to create a proper plot with a single data series. This function should use logarithmic axes, as needed, to make the data appear linear. The function will apply a trendline (select the appropriate type) and add a TL equation which should not overlap any data markers of trendlines on your plot. Call this function once to create a proper plot showing how the cooling factor depends on surface area (with heat transfer coefficient and total heat capacity held constant). Call this function a second time to create a proper plot showing how the cooling factor depends on total heat capacity (with surface area and heat transfer coefficient held constant). Use exponents determined from these two plots, which illustrate r = f(A) and r = f(m CP), along with the understanding that units must cancel correctly in any physics equation, to construct the predictive equation for r which includes the following variables: h, A, and (m CP). Heat transfer coefficient, h A heat transfer coefficient (h) [W / (m² K)] can be calculated from data recorded for each measured object using the equation for r, determined above. Determine mean, median and standard deviation of these heat transfer coefficients using built‐in MATLAB functions and report these values in the Command Window as follows. (The following numbers are made‐up values.) Heat Transfer Coefficient: Mean = 12.61 [W/(m^2 K)] Median = 12.42 [W/(m^2 K)] StdDev = 0.96 [W/(m^2 K)] User Interface Create a user‐interface, using menus, to make predictions about cooling objects. The user will indicate, using a menu, whether they want to calculate a cooling time to reach a specified final temperature or to calculate a final temperature for a specified cooling time. When determining a cooling time, the user should be prompted to provide the room temperature (limited to 0 to 100 °C), an initial temperature (limited to room temperature to 100 °C), and a final temperature (limited to room temperature to initial temperature). In the case of determining a final temperature, the user will be asked to input a cooling time (limited to 0 to 30 minutes), as well as room temperature (limited to 0 to 100 °C) and initial temperature (limited to room temperature to 100 °C). The user will select a shape (sphere, cylinder or rectangular block). Depending on the shape selected, the user will be prompted to enter diameter, length, width, and/or thickness (all in units of inches), as needed for each shape. Block physically impossible input data. The user will not be asked to enter a mass. The user will also select a material from the list provided in Table 1: Material Properties, above. As an option, allow the user to select “Other” as a material option. Here the user is indicating that they wish to enter information for a material that is not included on the provided list. In that case, prompt the user to enter the name of the material, its specific gravity and its specific heat. These must be limited to positive values. If the user enters any invalid input value, warn the user indicating what they did wrong and how to correct the problem. Continue asking for valid input until they enter valid input. If the user closes any menu, ask the user if they wish to exit the program. After the output has been given for a prediction, your code will ask the user whether they wish to re‐run the program to make another predication based on new user input. Formatted Output Your code will generate formatted output to the command window reporting the user’s input values as well as the predicted values (with units) of the cooling factor, r, and the predicted time in minutes or final temperature in degrees Celsius matching the pattern of the following examples. (The values presented here are made‐up.) To test your code, predict situations (test cases) for which you recorded data earlier. When of predicting a cooling time, your output should match the format example below. For a cylinder made of aluminum with a diameter of 0.375 [in] and a length of 4.305 [in], the cooling factor is 0.123 [put correct units here]. With a room temperature of 22.1 [°C], cooling by natural convection from an initial temperature of 85.0 [°C] to a final temperature of 58.3 [°C] is predicted to take 12.4 [min]. When predicting a final temperature, your output should match the format example below. For a sphere made of steel with a diameter of 1.000 inches, the cooling factor is 0.123 [put correct units here]. With a room temperature of 22 [°C], after cooling for 8.0 minutes by natural convection from an initial temperature of 80.0 [°C], the final temperature is predicted to be 65.4 [°C].
Answered Same DayApr 01, 2021

Answer To: Project – Data Analysis and User Interface Overview Your team will use the data previously logged...

Kshitij answered on Apr 07 2021
150 Votes
Grey/dataentry.m
%%
filename = 'coolittemplate-ujmrmakm.xlsx';
A = xlsread(filename,'Data Summary')
%%
[~,sheet_name]=xlsfinfo('coolittemplate-ujmrmakm.xlsx');
for k=1:numel(sheet_name)
data{k}=xlsread('coolittemplate-ujmrmakm.xlsx',sheet_name{k});
end
%%
filename = 'coolittemplate-ujmrmakm.xlsx';
A = xlsread(filename,'Material Properties')
Grey/myExample.xlsx
Sheet1
        First        Second        Third
        1        2        3
        4        5        x
        7        8        9
Grey/coolittemplate-ujmrmakm.xlsx
CData_Lead
        TimeStamp        Elapsed time (t) [s]        Temperature (T) [C]
        38:44.8        0.9541394        82.8842
        38:49.8        5.977326        76.6473
        38:54.8        10.9948877        71.1174
        38:59.8        16.0178812        66.558
        39:04.9        21.0560163        62.4479
        39:09.9        26.0781747        58.8095
        39:14.9        31.0924497        55.9299
        39:19.9        36.1262797        53.0046
        39:24.10        41.1498899        51.1206
        39:29.10        46.166344        49.439
        39:35.0        51.2006046        47.9092
        39:40.0        56.2128133        46.7577
        39:45.1        61.245058        45.561
        39:50.1        66.2611461        44.3415
        39:55.1        71.296114        43.6326
        40:00.1        76.3170817        42.657
        40:05.2        81.3403456        41.9253
        40:10.2        86.3639374        41.4832
        40:15.2        91.3812657        40.9574
        40:20.2        96.403405        40.2103
        40:25.3        101.4386695        39.974
        40:30.3        106.4526733        39.7835
        40:35.3        111.484869        39.0671
        40:40.3        116.5016698        39.06
71
        40:45.3        121.5244012        38.5564
        40:50.4        126.5571089        38.5564
        40:55.4        131.5802733        38.0762
        41:00.4        136.6042245        37.8171
        41:05.4        141.6205101        37.8323
        41:10.5        146.6428        37.3674
        41:15.5        151.6775793        37.3826
        41:20.5        156.690179        37.3598
        41:25.5        161.7252407        36.8796
        41:30.6        166.7494352        36.91
        41:35.6        171.7679077        36.6433
        41:40.6        176.7906021        36.4146
        41:45.6        181.8139354        36.1783
        41:50.7        186.8483748        36.1403
        41:55.7        191.8698573        36.1555
        42:00.7        196.8855258        36.1783
        42:05.7        201.9165261        35.6753
        42:10.8        206.941009        35.6905
        42:15.8        211.9638836        35.7135
        42:20.8        216.9797686        35.6829
        42:25.8        222.0112516        35.6677
        42:30.8        227.0333099        35.4772
        42:35.9        232.0505395        35.2637
        42:40.9        237.0879062        35.0046
        42:45.9        242.1057028        35.0198
        42:50.9        247.1235403        35.058
        42:55.10        252.1510973        35.035
        43:00.10        257.1789779        34.7379
        43:08.1        264.2723289        34.4786
        43:13.1        269.2846976        34.5168
        43:18.1        274.3199102        34.4862
        43:23.1        279.3329454        34.4862
        43:28.2        284.3637123        34.5396
        43:33.2        289.3830346        34.3033
        43:38.2        294.4119594        34.0594
        43:43.3        299.4389053        34.0518
        43:48.3        304.4596917        34.0747
        43:53.3        309.4790292        33.8109
        43:58.3        314.5013396        33.8344
        44:03.3        319.5261927        33.5453
        44:08.4        324.5485638        33.3266
        44:13.4        329.57983        33.3109
        44:18.4        334.5994312        33.3344
        44:23.4        339.6204151        33.2953
        44:28.5        344.6522225        33.3266
        44:33.5        349.6736535        33.0609
        44:38.5        354.6902984        32.7927
        44:43.5        359.7151498        32.8384
        44:48.6        364.7463994        32.8613
        44:53.6        369.7678021        32.8537
        44:58.6        374.7995507        32.8384
        45:03.6        379.8150757        32.8918
        45:08.7        384.8466899        32.8613
        45:13.7        389.8733498        32.6021
        45:18.7        394.8946458        32.3659
        45:23.7        399.9190366        32.1448
        45:28.8        404.939292        32.0915
        45:33.8        409.9613351        32.1525
        45:38.8        414.985898        32.1905
        45:43.8        420.0113862        32.122
        45:48.8        425.0353398        32.1525
        45:53.9        430.059256        31.9009
        45:58.9        435.0790286        31.6341
        46:03.9        440.1010943        31.6723
        46:08.9        445.1353426        31.6723
        46:13.10        450.1476422        31.7103
        46:18.10        455.1793269        31.6647
        46:24.0        460.1975205        31.6723
        46:29.0        465.2202428        31.474
        46:34.1        470.2519353        31.2149
        46:39.1        475.2732591        31.1769
        46:44.1        480.2907739        30.9862
        46:49.1        485.3267306        31.0168
        46:54.2        490.3456255        30.9253
        46:59.2        495.371924        30.9786
        47:04.2        500.3939901        30.9482
        47:09.2        505.4161012        30.994
        47:14.2        510.4352645        30.7423
        47:19.3        515.458649        30.7195
        47:24.3        520.493099        30.4528
        47:29.3        525.5079572        30.5061
        47:34.4        530.5420284        30.5061
        47:39.4        535.5651294        30.5214
        47:44.4        540.5856538        30.529
        47:49.4        545.6060156        30.4984
        47:54.4        550.6320899        30.529
        47:59.5        555.6537991        30.5061
        48:04.5        560.6790055        30.5214
        48:09.5        565.6997323        30.2622
        48:14.5        570.735994        30.2851
        48:19.6        575.7586062        30.0564
        48:24.6        580.782983        30.0564
        48:29.6        585.8025409        30.0869
        48:34.6        590.8248241        30.0793
        48:39.7        595.8475824        30.0793
        48:44.7        600.86727        30.0945
CData_Aluminum
        TimeStamp        Elapsed time (t) [s]        Temperature (T) [C]
        24:55.8        2.8888965        76.0209
        25:00.8        7.908361        70.7485
        25:05.9        12.9328579        66.1846
        25:10.9        17.9576226        63.0884
        25:15.9        22.9811756        60.4732
        25:20.9        28.0031161        58.7851
        25:25.9        33.0295416        56.8887
        25:30.10        38.0648854        55.6997
        25:36.0        43.0862081        54.5152
        25:41.0        48.1065358        53.5444
        25:46.0        53.1279847        52.844
        25:51.1        58.158765        52.0732
        25:56.1        63.1771444        51.6639
        26:01.1        68.199147        51.2029
        26:06.1        73.2330542        50.7825
        26:11.2        78.2562882        50.2557
        26:16.2        83.2750541        50.0352
        26:21.2        88.3049373        49.5474
        26:26.2        93.3202602        49.6021
        26:31.3        98.338054        48.886
        26:36.3        103.3770985        48.8626
        26:41.3        108.3956645        48.367
        26:46.3        113.4246055        48.4607
        26:51.4        118.446838        48.1778
        26:56.4        123.4663285        47.9583
        27:01.4        128.4898815        47.9736
        27:06.4        133.5075332        47.5203
        27:11.5        138.5379139        47.3127
        27:16.5        143.556799        47.3127
        27:21.5        148.579901        47.3508
        27:26.5        153.6146669        47.0898
        27:31.6        158.6373246        46.8716
        27:36.6        163.6634334        46.8794
        27:41.6        168.6850231        46.6667
        27:46.6        173.7074199        46.4385
        27:51.6        178.726501        46.1633
        27:56.7        183.7510647        46.2336
        28:01.7        188.7844409        46.2258
        28:06.7        193.7990822        45.9819
        28:11.7        198.8180266        45.7068
        28:16.8        203.8562904        45.7693
        28:21.8        208.8760327        45.7693
        28:26.8        213.8973918        45.2346
        28:31.8        218.9251226        45.0219
        28:36.9        223.9452281        45.0298
        28:41.9        228.9700999        45.1001
        28:46.9        233.9875005        44.5966
        28:51.9        239.011746        44.6045
        28:56.10        244.0468286        44.6591
        29:01.10        249.0586659        44.1401
        29:07.0        254.0948282        44.1635
        29:12.0        259.1198943        44.1948
        29:17.1        264.1418404        43.9665
        29:22.1        269.1644745        43.9353
        29:27.1        274.1891048        43.7148
        29:32.1        279.2063083        43.424
        29:37.1        284.2297344        43.4865
        29:42.2        289.2489407        43.4865
        29:47.2        294.2868572        43.2114
        29:52.2        299.308316        43.03
        29:57.2        304.3242265        43.0612
        30:02.3        309.3605156        43.0456
        30:07.3        314.3771299        43.069
        30:12.3        319.3989124        42.8017
        30:17.3        324.4194619        42.3294
        30:22.4        329.4494322        42.345
        30:27.4        334.471531        42.3372
        30:32.4        339.4910504        42.3372
        30:37.4        344.5288397        41.8572
        30:42.5        349.5388593        41.8885
        30:47.5        354.5742003        41.8963
        30:52.5        359.5883293        41.9354
        30:57.5        364.6225366        41.668
        31:02.6        369.6460124        41.4476
        31:07.6        374.6667001        41.1959
        31:12.6        379.6868659        41.2037
        31:17.6        384.711133        41.188
        31:22.7        389.734394        41.2505
        31:27.7        394.7663393        40.9598
        31:32.7        399.7894167        40.7471
        31:37.7        404.8134528        40.7784
        31:42.8        409.8397023        40.794
        31:47.8        414.8593441        40.5267
        31:52.8        419.880317        40.2906
        31:57.8        424.8981203        40.3218
        32:02.8        429.9225496        40.2984
        32:07.9        434.946597        40.2984
        32:12.9        439.969371        40.0779
        32:17.9        444.9934809        39.8575
        32:22.9        450.025826        39.834
        32:27.10        455.0495779        39.6526
        32:32.10        460.0684108        39.5979
        32:38.0        465.0988082        39.6214
        32:43.0        470.1171453        39.5901
        32:48.1        475.1397064        39.6292
        32:53.1        480.1744666        39.3853
        32:58.1        485.1967545        39.1336
        33:03.1        490.2237145        39.1961
        33:08.2        495.2440562        39.1726
        33:13.2        500.2681142        39.1648
        33:18.2        505.2869443        39.2039
        33:23.2        510.3090188        38.96
        33:28.3        515.3442286        38.7545
        33:33.3        520.3581408        38.503
        33:38.3        525.3776627        38.5106
        33:43.3        530.4163285        38.526
        33:48.4        535.4354516        38.5106
        33:53.4        540.4569454        38.2897
        33:58.4        545.4844502        38.0838
        34:03.4        550.496876        38.0534
        34:08.5        555.5364699        38.0686
        34:13.5        560.5596626        38.0534
        34:18.5        565.5798838        38.061
        34:23.5        570.6002629        37.8019
        34:28.6        575.6321176        37.6189
        34:33.6        580.6555246        37.3445
        34:38.6        585.6790498        37.3445
        34:43.6        590.7011419        37.4055
        34:48.6        595.7215249        37.3979
        34:53.7        600.7455914        37.3979
RTemp_TCylinder
        TimeStamp        Elapsed time (t) [s]        Temperature (T) [C]
        05:34.5        1.0181492        25.3342
        05:39.5        6.035103        25.3342
        05:44.6        11.0708277        25.0903
        05:49.6        16.0970426        25.0981
CData_MCylinder
        TimeStamp        Elapsed time (t) [s]        Temperature (T) [C]
        24:14.9        4.7844557        86.2135
        24:19.9        9.8003396        84.5458
        24:24.9        14.8332765        82.9009
        24:29.9        19.846653        81.3913
        24:34.10        24.8790793        79.9539
        24:39.10        29.895026        78.7805
        24:45.0        34.926441        77.5863
        24:50.0        39.9507469        76.8423
        24:55.1        44.9732033        75.9177
        25:00.1        49.9911088        75.1479
        25:05.1        55.014428        74.2217
        25:10.1        60.046325        73.503
        25:15.2        65.0716993        73
        25:20.2        70.0931222        72.2783
        25:25.2        75.1086334        71.8125
        25:30.2        80.1399409        71.0503
        25:35.2        85.160509        70.6027
        25:40.3        90.1887511        70.1413
        25:45.3        95.2130799        69.8933
        25:50.3        100.2320722        69.4284
        25:55.3        105.2547239        68.9346
        26:00.4        110.279106        68.4732
        26:05.4        115.3126803        68.1905
        26:10.4        120.3272022        67.7531
        26:15.4        125.36023        67.2423
        26:20.5        130.3841222        67.0518
        26:25.5        135.4034153        66.5744
        26:30.5        140.4257409        66.0387
        26:35.5        145.4552602        66.0461
        26:40.6        150.4743212        65.3384
        26:45.6        155.4962483        65.3308
        26:50.6        160.5302219        64.8913
        26:55.6        165.5475576        64.631
        27:00.7        170.5781859        64.1846
        27:05.7        175.6021455        63.9452
        27:10.7        180.6239414        63.7165
        27:15.7        185.6461383        63.2058
        27:20.8        190.669545        62.933
        27:25.8        195.6880161        62.4941
        27:30.8        200.7172159        62.4791
        27:35.8        205.7355312        61.9802
        27:40.8        210.7582108        61.7363
        27:45.9        215.7904459        61.2409
        27:50.9        220.8073902        61.2637
        27:55.9        225.8370901        60.8408
        28:00.9        230.8539437        60.7812
        28:05.10        235.8892586        60.0893
        28:10.10        240.9101815        60.1265
        28:16.0        245.9292866        59.6113
        28:21.0        250.9578817        59.6037
        28:26.1        255.9766927        59.1082
        28:31.1        260.9984651        58.8796
        28:36.1        266.0326308        58.6814
        28:41.1        271.0556052        58.3918
        28:46.2        276.0820377        58.1555
        28:51.2        281.1024069        57.9211
        28:56.2        286.1216626        57.6682
        29:01.2        291.1443958        57.2143
        29:06.2        296.165788        57.1994
        29:11.3        301.2010338        56.7089
        29:16.3        306.2228615        56.7317
        29:21.3        311.2387148        56.4802
        29:26.4        316.2724877        55.9848
        29:31.4        321.295204        55.9924
        29:36.4        326.3172358        55.5198
        29:41.4        331.3341914        55.5274
        29:46.4        336.3570543        55.2759
        29:51.5        341.3882553        54.8006
        29:56.5        346.4037401        54.7634
        30:01.5        351.4358416        54.2947
        30:06.5        356.4572659        54.3095
        30:11.6        361.4884301        54.317
        30:16.6        366.5038539        53.8064
        30:21.6        371.5354498        53.8521
        30:26.6        376.5586996        53.3415
        30:31.7        381.5815213        53.1204
        30:36.7        386.5994546        53.1128
        30:41.7        391.6346021        52.6174
        30:46.7        396.6559798        52.6174
        30:51.8        401.6803308        52.3582
        30:56.8        406.702637        52.1296
        31:01.8        411.7214984        51.9032
        31:06.8        416.7444069        51.8661
        31:11.9        421.7780084        51.4048
        31:16.9        426.8006256        51.4048
        31:21.9        431.8225756        51.1146
        31:26.9        436.8384868        50.904
        31:31.9        441.8703573        50.904
        31:36.10        446.8896867        50.6753
        31:41.10        451.9167955        50.439
        31:47.0        456.9334369        50.1951
        31:52.0        461.9637284        50.1951
        31:57.1        466.9950034        49.7225
        32:02.1        472.0186076        49.7149
        32:07.1        477.0383062        49.7455
        32:12.1        482.0579642        49.2347
        32:17.2        487.0892378        48.9832
        32:22.2        492.1057522        48.9832
        32:27.2        497.1275199        48.7622
        32:32.2        502.1578481        48.503
        32:37.3        507.1746246        48.5183
        32:42.3        512.2061316        48.5106
        32:47.3        517.2340112        48
        32:52.3        522.2550342        47.7768
        32:57.4        527.2782308        47.7768
        33:02.4        532.3012136        47.7768
        33:07.4        537.322152        47.323
        33:12.4        542.3453644        47.308
        33:17.5        547.3760843        47.308
        33:22.5        552.3965929        47.0476
        33:27.5        557.4191628        46.8354
        33:32.5        562.4436344        46.8125
        33:37.5        567.4613996        46.5991
        33:42.6        572.4850848        46.3247
        33:47.6        577.5086481        46.0808
        33:52.6        582.5328436        46.1189
        33:57.6        587.5681624        46.0884
        34:02.7        592.5903667        45.8369
        34:07.7        597.6145195        45.5778
        34:12.7        602.6393733        45.6082
RTemp_MCylinder
        TimeStamp        Elapsed time (t) [s]        Temperature (T) [C]
        21:08.10        2.6643382        25.8399
        21:14.0        7.6869102        25.558
        21:19.0        12.7084311        25.535
        21:24.0        17.7244318        25.5427
RTemp_Lead
        TimeStamp        Elapsed time (t) [s]        Temperature (T) [C]
        36:44.2        1.8891303        26.2484
        36:49.2        6.9073021        26.2016
        36:54.2        11.9301544        26.225
CData_Steel
        TimeStamp        Elapsed time (t) [s]        Temperature (T)...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here