I am not too bad at programming, but this little annoyance in MATLAB is driving me crazy, and I need to finish this off asap (my advisor is leaving for holiday in 2 days!).
I am interested in summing up the resultant amplitude from a population of oscillators, each of which is a solution of the van der Pol equation with parameter u>0 with the following property: the time periods of the ensemble are Gaussian-ly distributed with mean T and SD s.
I wish to use MATLAB to evaluate this sum. I can evaluate the v.d.P. solution in a function, can generate random normally distributed numbers using randn() but somehow the eventual summing up which involves an iterative call to the ODE function from a main fucntion is not giving me the sum correctly. I have tried making the sum a global variable too. I could have posted the code too, as evidence that I am not askng you to do my homewoek, but my advisor will not like that.
Please help!!
2007-05-27
10:42:57
·
2 answers
·
asked by
Anonymous
in
Science & Mathematics
➔ Mathematics