Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/Irlyue/article/details/52038499
contour
Heavy-duty version
- contour(Z)
- contour(x, y, Z)
- contour(X, Y, Z)
- contour(Z, n)
- contour(Z, v)
description
- Draw a (two-dimensional) matrix Z contour, Contour labels available clabel
- The contour (Z), denoted [m, n] = size (Z), noted that the range of coordinates x-axis is [1: n], and y-axis coordinates in the range [1: m]
- Xy axis is given with the range of very different vectors and matrices:
- Vector form: m == size (y), n == size (x), i.e., two for loops to matrix Z generated over remember to transpose
- Matrix form: it generates a function meshgrid
- Layers contours specified in the function of the parameter n (or several)
- Range parameter v indicates contour, the contour drawing a single available [i, i], i.e. the contour piece depicts only the value of i, v may of course be a monotonically increasing vector
personal experience
- Single isoline decision boundary in the logistic regression was very effective, contour (xx, yy, Z, [0, 0])