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...
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)...
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...
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...
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...
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...