1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB Modelling Question

  1. Mar 16, 2016 #1
    1. The problem statement, all variables and given/known data
    Modelling the following equation:

    k = Delta Q / t

    2. Relevant 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

    3. 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?
     
  2. jcsd
  3. Mar 16, 2016 #2

    jedishrfu

    Staff: Mentor

    Is the delta Q a fixed constant or does it depend on k or t?
     
  4. Mar 16, 2016 #3
    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.
     
  5. Mar 16, 2016 #4

    jedishrfu

    Staff: Mentor

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: MATLAB Modelling Question
  1. MATLAB Question (Replies: 5)

  2. MATLAB question (Replies: 2)

  3. Matlab question (Replies: 2)

  4. Matlab question (Replies: 1)

Loading...