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. Matlab differetial eqn using ODE45. ......which is same as Assume dt was......which is same as integrated from 0 to t, and s0=5, s=10, and a = [1 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!