Question: Create a function in matlab/octave to obtain what is given in the problem: Newton's law of cooling says the temperature of a body changes at
Create a function in matlab/octave to obtain what is given in the problem:

Newton's law of cooling says the temperature of a body changes at a rate proportional to the difference between its temperature and that of the surrounding medium (the ambient temperature). The time-domain model of this statement is given as T = T, + (T. -T.) exp(-kt) where T is the temperature of the body at time, t, T, is the ambient temperature, To is the initial temperature of the body and k is a parameter of the system. Write a function Ecooling() with the format function T = fcooling (t, Ta, To, k) that computes AND plots t as a function of a time array t. Test your function for a cup of coffee at 70C being left in a room whose temperature is 20C, where k = 0.019/min. Plot the temperature up to 400 minutes. Tell something about the plot and how it relates to the temperature of the coffee left in the room. tur a 152 960 Tee
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
