Ode45 Definition and 56 Threads

  1. H

    MATLAB Troubleshooting ODE45 Matlab Subfunction: Save Matrix Values in Main Code

    I'm stuck with a problem with the subfunction ODE45 of Matlab: I need to save two matrixes' values created inside the ODE subfunction. I can't create an index inside the subfunction because I have to define it at the start so at every round it returns to zero. This is what I've done in...
  2. A

    Passing computations from ODE45

    Does anyone know a trick to pass variables computed in the user defined function called by ODE45 in MATLAB? For example, imagine you have the following code: %======================================= [t,y] = ode45('DiffEQ',dt,Initial,options); function dy = DiffEQ(t,y) Fc = y(1)*y(2)...
  3. T

    MATLAB How to follow a function's value in ODE45 Matlab?

    Hi everyone, It is extremely helpful for me if you could answer the following question. I hope it is a relatively simple problem: I just need a plot or an output data file of the values of the function 'm=2/y(1)' appearing in the function 'myfun' for each time-step. This is extremely easy in...
  4. M

    Using ode45 to solve Vel. and Temp. profiles

    Homework Statement Find the velocity and temperature profiles for stagnation point flow (m=1) for various values of Pr (Pr=0.6,1,1.5,5,10) Show that δ/δT ~Pr^0.4 by calculating δ and δT with 99% recovery of free stream velocity and temperature profiles, respectively. Plot θ'(0) vs. Pr...
  5. J

    MATLAB Solving four ordinary dif equations simultaneously using ode45 matlab

    I am trying to replicate an example problem that was found in an "into to combustion book"... And of course, yes it is for school. Unfortunately there is no MATLAB class offered but, they expect us to know it... I tried the example in MATLAB help found under the ode45 and couldn't even get...
  6. M

    MATLAB Solving IVP with ODE45: a=0.00001, b=0.25 & a=0.0002, b=0.10

    Hi! I have :eek: hand in an assigment in like four hours and part of it involves solving a IVP. We have to use the built in function ODE45. the system of equations are as follows. x'(t)=-axy y'(t)=axy-by z'(t)=by Use step length 1 and solve the ivp numerically for the following values...
Back
Top