MATLAB File Help: cv.KNearest/load Index
cv.KNearest/load

Loads algorithm from a file or a string

model.load(filename)
model.load(str, 'FromString',true)
model.load(..., 'OptionName',optionValue, ...)

Input

Options

This method loads the complete model state from the specified XML or YAML file (either from disk or serialized string). The previous model state is cleared.

See also
Method Details
Access public
Sealed false
Static false