SaveReport
Location: ..\cubatch\SaveReport.m

function SaveReport (MainFig);
Description:
Saves the informations (such as labels, description, author,...) relative to a loaded set of data or to the data employed for computing a model.
It produces a window allowing to choose which information to save in the report and passes the generated ReportStruct to the model-specific *Report functions. It also passes the file handle relative to the generated txt files and handles its closure.
The report structure has the following fields:

- 'data', save data info,
- 'file', txt file name,
- 'maxlabels', maximum labels saved per mode,
- 'm_info', save model information,
- 'm_results', save model results,
- 'p_info',save new data information,
- 'p_results',save projection results,
- 'v_info',save validation information,
- 'v_results',save validation results.

The *_info and *_results are logical vectors of length 10. Currently only the first element is set to 0/1, the others can be used in the future for finer tuning of the saved information.
NB, It must be remembered (when implementing a new method) that the txt file must not be closed in the model-specific function.
Inputs:
MainFig: handle to the main figure.

Outputs:
None

Called by:
CuBatch
Subroutines:
Internal: None
External: cenwindow, ctag, cval, setcvdata, *Report

Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark
Last modified: 02-Nov-2002 19:24:20
Contact: Giorgio Tomasi, gt@kvl.dk
References