Question: Matlab differetial eqn using ODE45. ......which is same as Assume dt was integrated from 0 to t, and s0=5, s=10, and a = [1 2
Matlab differetial eqn using ODE45.
......which is same as
Assume dt was integrated from 0 to t, and s0=5, s=10, and a = [1 2 3 4 5]. So calculate the differential using ode45 for every value of a. (you should get 5 values for time (t) ---needs to be plotted How would you create a function file by using one value of s and use it to the plug in other s values to find all t values???
This is what I did..
function file
function[dt]=time(s,a)
dt=1/(45sa)
end
main script
t=[];
s=[];
for a=1:5
[t,s]=ode45(@time, [0, ?], [????], [???])
end
PLEASE JUST MAKE USE OF FUNCTIONS THAT ARE SIMILAR.
dt ds (45as)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
