//Example 22.2 m=9.11*10^-31;//Mass of electron (kg) v=6*10^7;//Velocity of electron (m/s) B=0.5;//Magnetic field strength (T) q=1.60*10^-19;//Charge of electron (C) r=m*v/(q*B);//Radius of curvature (m) printf('Radius of curvature = %0.3f mm',r*1000) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest