Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Integrating with matlab

  1. Aug 24, 2010 #1
    So this is really (I think) a matlab question in a mechanical engineering context.

    I am trying to find a length using ODE45 Integrator which changes with time.

    the length is:

    l = k - c +r.cos(q)

    where q is an angle (the length is the length of a combustion chamber which varies depending on the position of the piston attached to a flywheel).

    My problem though is if i differentiate l, and put that in as dl_dt, for ODE45 to integrate, how do i get the value of the constants back in, because the value of l is found from integrating dl_dt, and not from the geomety like the l equation above is?

    thank you
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: Integrating with matlab
  1. Matlab Loop Errors (Replies: 2)

Loading...