Info

This question is closed. Reopen it to edit or answer.

i have problem in my code but i don't know where or how to fix it

1 view (last 30 days)
Hello i have problem with this program and i don't know how to fix it please any help.
first of all here is how i want to program my code:
  • -i give initial data
  • -then i penetrate in RK4
  • -it gives me the y1,y2,y3,y4
  • -i put 2 tests
  • -if it's true i penetrate in henon to give me y1,y3
  • -and i'll stoke it in A(a) and B(a)
  • - and i return to RK4 to search for another point that verify the tests and to penetrate in henon once again
  • -if all the tests is false must return to RK4 once again
  • in final i plot A(a) and B(a)
here is how i translate that in matlab
i do input for the initial data then
for n=1:N
rk4
if test1
if test2
while test1 & test2 & a<=N
henon
A(a)=
B(a)=
a=a+1
endwhile
else
resturn to rk4
endif2
else
return to rk4
endif1
endfor
and must plot a limited circle but it gives me this
  2 Comments
Guillaume
Guillaume on 19 May 2015
It took me a while to understand what you meant by penetrate. I think you meant input (from "entrer" ?).
In any case, it's impossible to tell you what is wrong from pseudocode you've given. Instead, post your code (don't forget to use the code formatting button {} Code) or attach the .m file if it is too long.

Answers (0)

Community Treasure Hunt

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

Start Hunting!