ysim = random(mdl)
ysim = random(mdl,Xnew)
ysim = random(mdl,Xnew,'Weights',W)
simulates
responses from the fitted nonlinear model ysim
= random(mdl
)mdl
at
the original design points.
simulates
responses from the fitted nonlinear model ysim
= random(mdl
,Xnew
)mdl
to
the data in Xnew
, adding random noise.
simulates
responses using the observation weights, ysim
= random(mdl
,Xnew
,'Weights',W
)W
.

Nonlinear regression model, constructed by 

Points at which


Vector of real, positive value weights or a function handle.
Given weights, Default: No weights 

Vector of predicted mean values at 
For predictions without added noise, use predict
.