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 - The Fusion of Science and Community**

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

# Matlab Plot

Loading...

Similar Threads - Matlab Plot | Date |
---|---|

Matlab Plotting Coordinate Transformations in Matlab | Feb 12, 2018 |

Matlab Plotting animations (time-evolution) | Jan 17, 2018 |

Does anyone had this plotting problem with MATLAB? | Dec 23, 2017 |

Matlab Matlab's plot command | Nov 30, 2017 |

Matlab Matlab -- how to make a smooth contour plot? | Jun 28, 2017 |

**Physics Forums - The Fusion of Science and Community**