Don't like this style? Click here to change it! blue.css

Lab 8: MATLAB!

You will have to work in pairs today. If you don't want to then find some time later in the day to get solo access, otherwise look around to find other people looking around and pair with them.

Three MATLAB missions. Please submit your *.m files:

  1. Create a function called circle_minus_square which consumes the radius of a circle and returns the area inside that circle but outside of a perfectly inscribed square in the circle.
  2. Create a function called sum_odd_ints which consumes a begin value and an end value and returns the sum of all odd numbers between those two (inclusive).
  3. Generate a plot of tan(x) on the x values from 0 to 1 (with steps of size .001).