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

Detailed Description

Splits data using SGS. Returns an array of structures.

Utilizes the maps issued by the sgs object as row maps to split the dataset

Definition in file data_split_sgs.m.

Go to the source code of this file.

Functions

function data_split_sgs (in data, in sgs)
 

Function Documentation

function data_split_sgs ( in  data,
in  sgs 
)
Parameters
datairdata object
sgssgs object
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.