Question: What are the scripts in MATLAB for this question? (b) The temperature decay should have the following theoretical behaviour: T(t) = Ta + (To Ta)e-kt
What are the scripts in MATLAB for this question?

(b) The temperature decay should have the following theoretical behaviour: T(t) = Ta + (To Ta)e-kt where T(t) is the temperature at time t, Ta is the ambient temperature, T, is the initial temperature, and k is a constant. (i) Write a function called func that calculates a set of expected temperatures from the following input arguments: Ta, TO, k and a time vector, t. (ii) Write down the command that would call this function using the vector time as one input argument along with the following values of the other input arguments: 20 C Ta 100 C 0.2 min-1 k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
