IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

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 Documentation

function classes2boolean ( in  classes,
in  no_different 
)
Parameters
classesZero-based class vector. It may be a column or row vector, doesn't matter.
no_different=(auto) Number of classes
Returns
output Matrix described below.