1. Not finding help here? Sign up for a free 30min 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 DSOLVE SLOW

What would you suggest?

Poll closed Jan 1, 2013.
  1. Accept long hours solution time

    0 vote(s)
    0.0%
  2. Use a different way to solve ODE

    0 vote(s)
    0.0%
  3. Improve the code

    0 vote(s)
    0.0%
  4. run on a faster machine

    0 vote(s)
    0.0%
  1. Dec 2, 2012 #1
    1. The problem statement, all variables and given/known data
    I am using MATLAB Symbolic Tool Box "Dsolve"
    to solve 2nd order, linear, ordinary, non-homogenous differential equation with initial conditions.

    2. Relevant equations

    Equation of motion with base excitation (vibration: single degree of freedom system)

    3. The attempt at a solution

    Calculating response spectrum for frequency range 1 to 1000 with 1000 time-steps for piecewise linearized base acceleration input (forcing function).
    That is 1 million times solving the ODE using DSOLVE.
    It takes 0.6 secs for 1 time on a 64bit machine. For 1 million times it will take 166 hours, almost a week!
    Is there anyway we can speed up the process?

    What do you suggest?
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
    1. The problem statement, all variables and given/known data



    2. Relevant equations



    3. The attempt at a solution
     

    Attached Files:

  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?



Similar Discussions: Matlab DSOLVE SLOW
  1. Matlab help (Replies: 0)

  2. Help with Matlab (Replies: 0)

  3. Matlab Problem (Replies: 0)

  4. MATLAB: Optimization (Replies: 0)

  5. MATLAB Function (Replies: 0)

Loading...