Hi there,(adsbygoogle = window.adsbygoogle || []).push({});

I have yet another Matlab query.

I have an m=file that I am using to solve an ode.

This file has a constant (call it H) within the differential and when I use the ode solver in the command window returns values of z and r (this returns two 85x1 vectors which can be plotted against each other).

Now I want to make H vary between 4200 and 4400 and get 85 values of z and r for every step in H, i.e. I want to get a matrix of 85x200 for each of z and r.

I am sorry if this is not worded very well, I am a bit confused as I am a Matlab novice, if anyone could give me some tips that would be much appreciated.

Cheers

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

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- solving odes for a matrix

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Matlab solving odes | Date |
---|---|

Solving coupled ode in matlab help | May 3, 2012 |

Solving two ODE's Simultaneously using MATLAB | Apr 3, 2011 |

Solving ODEs system at Matlab | Nov 11, 2008 |

Solving a matrix valued ODE using dsolve in Matlab? | Dec 4, 2007 |

Having a problem with solving a second order ODE equation using Matlab | Feb 14, 2007 |

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