![]() |
IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
|
Converts classes into a boolean matrix.
Converts classes into a boolean matrix where each column correspond to one class. It will contain a one in column j if the i-th row belongs to the j-th class or zero otherwhise.
Definition in file classes2boolean.m.
Go to the source code of this file.
Functions | |
function | classes2boolean (in classes, in no_different) |
function classes2boolean | ( | in | classes, |
in | no_different | ||
) |
classes | Zero-based class vector. It may be a column or row vector, doesn't matter. |
no_different | =(auto) Number of classes |