feval
Predict responses of censored linear regression model using one input for each predictor
Since R2025a
Description
returns the predicted responses of ypred
= feval(mdl
,Xnew1,Xnew2,...,Xnewn
)mdl
to the new input predictors
Xnew1,Xnew2,...,Xnewn
.
Examples
Input Arguments
Output Arguments
Tips
A regression object is, mathematically, a function that estimates the relationship between the response and predictors. The
feval
function enables an object to behave like a function in MATLAB®. You can passfeval
to another function that accepts a function input, such asfminsearch
andintegral
.feval
can be simpler to use with a model created from a table or dataset array. When you have new predictor data, you can pass it tofeval
without creating a table or matrix.
Alternative Functionality
The
predict
function gives the same predictions asfeval
by using a single input argument containing all predictor variables, rather than multiple input arguments with one input for each predictor variable.predict
also gives confidence intervals on its predictions.The
random
function predicts responses with added noise.
Version History
Introduced in R2025a
See Also
fitlmcens
| CensoredLinearModel
| CompactCensoredLinearModel
| predict
| random