Clear Filters
Clear Filters

Values in code are not updating ? /Not getting desired output.

1 view (last 30 days)
I am trying to solve some couple ODE`s using runga-kutta 4th order NUmerical method,i am not getting desired result.

Accepted Answer

Walter Roberson
Walter Roberson on 30 Oct 2015
How can you tell you are not getting the desired result? You are not saving the results of your calculation, except that your array named "temporary" will reflect the result of the last for loop iteration (as you overwrite it on every iteration.)
  14 Comments
KAPIL MAMTANI
KAPIL MAMTANI on 1 Nov 2015
Thank you very much Mr walter for all your help and guidance.
KAPIL MAMTANI
KAPIL MAMTANI on 3 Nov 2015
Hi, I have been running my code with different initial values for many runs but it is very rigorous work to find the optimum set of values.I want to check my code for varying input parameters/- Q(varying monthly),N(1),P(1),TIC(1). Also, I want to put a conditional statement for N/P and C/N in the code to change the formula as per scenario. Can you guide me in right direction?

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!