Hello everyone. I just started to learn MATLAB. t I'm trying to develop myself with solving problems. how can I solve the question in matlab?

Newton’s law of cooling says that the temperature of
a body changes at a rate proportional to the difference be-
tween its temperature and that of the surrounding medium
(the ambient temperature),
dT/dt = −k(T − Ta)
where T = the temperature of the body (°C), t = time (min),
k = the proportionality constant (per minute), and Ta = the
ambient temperature (°C). Suppose that a cup of coffee
originally has a temperature of 70 °C. Use Euler’s method to
compute the temperature from t = 0 to 20 min using a step
size of 2 min if Ta = 20 °C and k = 0.019/min.

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by