Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 TeeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started