Complete the code to create a contour plot of matrix Z.
contour([1]);The contour function creates contour plots of the matrix Z.
Complete the code to generate X and Y grid matrices for contour plotting.
[X, Y] = meshgrid([1], [2]);
The meshgrid function creates grid matrices from vector x for X and Y.
Fix the error in the code to plot contour lines with 10 levels.
contour(X, Y, Z, [1]);The number of contour levels should be a numeric scalar, so use 10 without quotes or brackets.
Fill both blanks to create a contour plot with labeled contour lines.
C = contour(X, Y, Z, [1]); clabel([2]);
Use 20 contour levels and label the contour matrix C returned by contour.
Fill all three blanks to create a filled contour plot with a colorbar and title.
contourf(X, Y, Z, [1]); colorbar([2]); title([3]);
Use 15 contour levels, place the colorbar outside on the east, and add a descriptive title.
