Plot_Predictions
Location: ..\cubatch\Model_nPLS1\private\Plot_Predictions.m

function [Axes,MO] = Plot_Predictions (PlotStruct,ModelOut,MainFig);
Description:
Plots the predicted values for new samples/batches according to what selected in the control figure opened with nPLS1PlotControls. The model predictions or the validation predictions (if present and applicable) are plot on top.
as there are no measured values the predictions for the new samples/batches will lie on the diagonal.
The choice of the LV derives automatically from ModelOut.model.nbfactors.
For the axes specified by Axes the 'ModelOut' application-defined data is set, and it contains a copy of ModelOut.(employed by nPLS1DisplayInfo)

Inputs:
PlotStruct: PlotStruct structure
ModelOut: ModelOut structure for the model selected via the menus in the main window.
MainFig: main figure handle

Outputs:
Axes: handle of the axes with the predictions.
MO: empty

Called by:
Model_nPLS1\nPLS1ActivatePlots
NB. The actual call is made from nPLS1Plot via feval and not from Model_nPLS1\nPLS1ActivatePlots.

Subroutines:
Internal: None
External: npls1plotcontrols, plotmodel, plottargetline, plotvalidation

Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark
Last modified: 05-Dec-2002 17:40:38
Contact: Giorgio Tomasi, gt@kvl.dk
References