Assignment #3


For this assignment, you will demonstrate your ability to access files as well as your ability to use the skills that we have talked about recently in class. You will write a few functions and turn those into me. Your functions will be the following:

writeComma - This function will take a filename and an array (possibly 2-D) and write the array to file in a comma separated text format.

readComma - Takes a file name and returns an array that was read from a comma separated text file.

newton - Write your own version of Newton's method that takes a function handle and a first guess for the root.

leastSquareFit - This function takes in a bunch of points as an array and returns the line that fits them as the m and b from y=mx+b.