Particle motion in electromagnetic field

I have to write a MATLAB script to simulate the motion of particle in a spectrometer using the differential equations of motion. Does exist any script that solve differential equations of charged particles motion I can use as example and guidance? It would be my first attempt to solve differential problem in MatLab and I am a newbie also, then more material I have the more happy I am.

 채택된 답변

the cyclist
the cyclist 2012년 1월 25일

1 개 추천

I suggest running the function
>> odeexamples
which gives several examples of solving ODEs, along with the code that was written to do it.

댓글 수: 1

Francesco
Francesco 2012년 1월 25일
Thanks. If there is anyother suggestion it would be great.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Patrick Kalita
Patrick Kalita 2012년 1월 25일

0 개 추천

The ode family of functions are used to solve differential equations in MATLAB. I would recommend looking at the examples on that documentation page to learn how to define and solve your differential equations.

카테고리

도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by