MATLAB Matlab- solving odes for a matrix

  • Thread starter birdhen
  • Start date
Hi there,

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.


Want to reply to this thread?

"Matlab- solving odes for a matrix" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving