MATLAB Answers

How to define a multivariable function (for instance an anonymous function) of a number of variables that varies according to the size of an array variable?

7 views (last 30 days)
Abdelwahab Afifi
Abdelwahab Afifi on 5 Jan 2020
I have two vectors input and output ,where S is the number of samples
I want to solve this problem as nonlinear least-squares (nonlinear data-fitting), so I have to define my anonymous function as follow
,where L is the number of coefficients and X is the regression matrix of x
How to define vector of coefficients ?!

Sign in to answer this question.