Question: Run the code using the Run Script button to see what happened first and the correct the MATLAS program in the template that should 1.

Run the code using the Run Script" button to see what happened first and the correct the MATLAS program in the template that should 1. Determine which time and teroperture data correspond to the reaction temperature range of 500 to 1000 Kelvin) Extract this data and save it. The program homine the data range oil extract the data automatically using array comparisons and indexing The operation should work for any arrays named and teep. No hard coding 2. Determine the time it takes for the reaction to exceed 500K. The program should determine this outomatically. The program should determine the time tomatically an array compare and Indexing. The operation should work for any arrays named t and to Make sure that the time value the corrected program reports is consistent with what the graph of the reaction visually Hints there are two shulements that have errors (one run time for and cre logic error). Make sure the consect variables are being operated on correct indicesiogicals are ined for moreng operations Script 1 2 % time in seconds and reaction temperature in Kelvin 3 t = 0.0 : 0.25 : 3.25; 4 5 %define a vector in multiple lines 6 temp = [290, 405, 440, 458, 475, 480, 485, 498, 510, 515, 521, 600, 750, 1210]; 7 8 9 10 figure(1) 11 plot(t, temp); 12 grid, axis tight; 13 xlabel('t (s)'), ylabel('temperature (K)); 14 title('Temperature vs Time of Thermite Reaction'); MATLAB Editor to write move to the previous fi 15 16 % data corresponding to reaction temperature range of 500 to 1000 K 17 ind find(temp > 500 & temp = 500; 23 TGT500 = temp(locTempGT500); 24 t500 = TGT500(1); 25 fprintf('Time for reaction temperature to exceed 500 K is %0.2f s. ', t500)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
