calc_limits.m 221 B

1234567
  1. function p = calc_limits(p)
  2. p.x_min = 0;
  3. p.y_min = 0;
  4. p.x_max = projectile_motion(p, p.t_max);
  5. p.max_time = (p.velocity * sind(p.theta_0) / 9.8);
  6. [dump, p.y_max] = projectile_motion(p, p.max_time);
  7. end