margin
Margin of k-nearest neighbor classifier
Description
                returns the classification margins for
                    m = margin(mdl,Tbl,ResponseVarName)mdl with data Tbl and classification
                    Tbl.ResponseVarName. If Tbl contains the
                response variable used to train mdl, then you do not need to
                specify ResponseVarName.
m is returned as a numeric vector of length
                    size(Tbl,1). Each entry in m represents
                the margin for the corresponding row of Tbl and the
                corresponding true class label in Tbl.ResponseVarName, computed
                using mdl.
Examples
Input Arguments
More About
Extended Capabilities
Version History
Introduced in R2012a