Navigation : Top/MATLAB Practice 3

Contour and vector maps

  1. Create a contour using the data of `a=peaks'. Show the names of the coordinates as well.
    # peaks, contour
    # xlabel, ylabel 
  2. Find the gradient from the data of `a=peaks', compute the vector plot and plot it.
    # peaks, gradient, quiver 
  3. Draw a vector diagram overlapping the contour using the data from 1 and 2. Indicate the names of the x- and y-axis coordinates in 14-point font size. The lengths of the x- and y-axes should be the same.
    # hold on, hold off xlabel, ylabel, set(gca,???) 
    Create a filled contour with contours removed using the data in +`a=peaks'. The maximum and minimum values of the contour should be [-5,10] and a colorbar should be added to the side of the figure. Find the second derivative of a and overlap the vector plot.
    # peaks, contourf, pcolor
    # set(h,'LineStyle','none'), caxis, colorbar 
  4. Save the figures 3 and 4 in bmp, jpeg and eps formats and compare the file sizes
    # print