How can I model a temperature change using MATLAB?

  • Thread starter Thread starter BubblesAreUs
  • Start date Start date
  • Tags Tags
    Matlab Modelling
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
BubblesAreUs
Messages
43
Reaction score
1

Homework Statement


Modelling the following equation:

k = Delta Q / t

Homework Equations



Q = T2 - T1 = -40 (fixed)

t = Delta Q / k. I need to find t.

k can be floating so I suppose 0 to 10 minutes with 0.5 increments

The Attempt at a Solution



I don't have MATLAB on me at the moment, but I think I should just set a loop for k, nest the expression for t and the plot a k vs t curve.

Does that sound right?
 
Physics news on Phys.org
jedishrfu said:
Is the delta Q a fixed constant or does it depend on k or t?
Delta Q is a fixed variable and rather k, t depend on it as they are floating variables.

MATLAB is a bit different from python in that its arrays aren't indexable. Say x = [1,2,3,4,5], I can't use x[0] = 1, x[3] = 4, etc.