Plot cfit
or sfit
object
Note
These syntaxes are available for surfaces, or sfit
objects.
plot(
plots the sfit
)sfit
object over the range of the current axes, if
any, or otherwise over the range stored in the fit.
H = plot(
selects which way to plot the surface fit object sfit
, ..., Name,Value
)sfit
.
H = plot(
returns a vector
of handles of the plotted objects.sfit
, ...)
plot(cfit,
plots the predictor and response data using the color, marker symbol, and line
style specified by the x
,y
,DataLineSpec
)DataLineSpec
formatting character
vector.
plot(
plots cfit
,FitLineSpec
,x
,y
,DataLineSpec
)fun
using the color, marker symbol, and line style
specified by the FitLineSpec
formatting character vector, and
plots x
and y
using the color, marker
symbol, and line style specified by the DataLineSpec
formatting character vector.
plot(
plots data indicated by cfit
,x
,y
,outliers
)outliers
in a different color.
outliers
can be an expression describing a logical
vector, e.g., x > 10
, a vector of integers indexing the
points you want to exclude, e.g., [1 10 25]
, or a logical
array where true
represents an outlier. You can create the
array with excludedata
.
plot(
plots cfit
,x
,y
,outliers
,OutlierLineSpec
)outliers
using the color, marker symbol, and line style
specified by the OutlierLineSpec
.
plot(...,
uses the plot type specified by ptype
,...)ptype
.
Note
This syntax is available for both curves and surfaces.
Plot types can be single or multiple, with multiple plot types
specified as a cell array of character vectors. With a single plot type,
plot
draws to the current axes and can be used
with commands like hold
and subplot
. With multiple
plot types, plot
creates subplots for each plot
type.
returns a vector of handles to the plotted objects.H
= plot(...)