SelectSamples

Location: ..\CuBatch\SelectSamples.m

function ModelIn = SelectSamples (ModelIn,Flag);

Description:
Opens the window for selecting batch/samples and handles the corresponding events.
Two application-data structures are assigned to the opened figure:
'ModelIn', with the interim ModelIn structure and 'Handles', with the handles to the figure's objects.

Inputs:
ModelIn: ModelIn structure (at the first call), NaN when handling callback events
Flag: If it is equal to 1 it is possible to assign samples/batches to both the calibration set and the test set. If it is equal to 2 the text above the "Assign to" button is changed into
'Choose samples'. For any other value the text is 'Exported set'.

Outputs:
ModelIn: ModelIn structure.

Called by:
CuBatch, ExportData

Subroutines:
Internal: None
External: charwidth, ctag, getcvdata, guinames, initialise, screensize, setcvdata, skcell

Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark

Last modified: 26-Oct-2002 17:42:36

Contact: Giorgio Tomasi, gt@kvl.dk

References