Hey i need help in ODE45...i'm new to PF...pls help me(adsbygoogle = window.adsbygoogle || []).push({});

i have the following code

>>for i=1:5

>>tspan=[0 30]

>>h0=Hv(i)

>>[t,h]=ode45['a ODEfunction',tspan,h0]

>>plot(t,h)

>>end

in this loop how can i save 5 values of [t,h],

as t, h produces each loop run like follows

t=

1

2

3

4

.

.

.

h=

5

6

7

8..

also i need to plot all of them n i could view the 5 graphs them..pls help..

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab Plot

**Physics Forums | Science Articles, Homework Help, Discussion**