MATLAB EXERCISES (1) Write a Matlab script to compute the best-fitting cubic (y = a + b*x + c*x^2 + d*x^3) to the points (1, 1.5), (2, 1.9), (3, 3.2), (4, 4.5) and (5, 6.0). Print the values of a, b, c, and d. Plot the points together with the best fitting curve. Please just e-mail me your Matlab script; you don't need to make a hardcopy of the plot. (2) Get the file containing the SIO area topography, siotopo.bin, from mahi.uscd.edu (anonymous ftp) in the /pub/239 directory. You may have to say "type binary" within ftp before you get the file. Alternatively, you should be able to get the file from your web browser at igpphome.ucsd.edu/~shearer/Files/ Verify that the plotsiotopo.m script makes a color plot of the data. (a) Write a script to make a histogram plot of the fraction of the topography within a reasonable number of depth bins. Mail me a copy of this script. (b) Write a script to make a local estimate of the magnitude of the slope at each point and generate a slope map. (HINT: Use the Matlab gradient operator) Mail me a copy of this script. NOTE: Please send scripts as plain text, not as attachments! Just cut and paste into you plain text e-mail message, or simply enter: mail pshearer@ucsd.edu < do.script where do.script is your script