shregr2

Plots model predictions and data

Contents

Syntax

shregr2(func, p, x, y, Z)

Description

Plots model predictions and data (optionally). It allows you to plot a response surface in 3 dimensions, together with your data, or sets of xz-curves or yz-curves. The data are projected on the surface, and on the curves, to show the difference between the data and model predictions. These projections help to reveal which data-point relates to which curve.

Input

Remarks

Options can be set by shregr2_options Inputs as in nrregr2; the data matrix is optional. The ranges of the two independent variables can be set optionally in two 2-vectors with upper and lower values.

Example of use

assuming that function_name, pars, xvalues, yvalues, and zdata are defined properly:
shregr2('function_name', pars, xvalues, yvalues, zdata) or shregr2 ('function_name', pars, xvalues, yvalues).

Code