IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
data_split_classmap.m File Reference

Detailed Description

Splits dataset according to class map.

Definition in file data_split_classmap.m.

Go to the source code of this file.

Functions

function data_split_classmap (in data, in maps)
 

Function Documentation

function data_split_classmap ( in  data,
in  maps 
)
Parameters
datairdata object
mapsCell of vectors containing class indexes.
Returns
[pieces] or [pieces, map]. pieces: array of irdata objects; map cell array of vectors containing the indexes of the rows in the original dataset that went to each element of piece.