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?
3 ビュー (過去 30 日間)
古いコメントを表示
I have two vectors input
and output
,where S is the number of samples
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/259815/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/259816/image.png)
I want to solve this problem as nonlinear least-squares (nonlinear data-fitting), so I have to define my anonymous function as follow
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/259817/image.png)
,where L is the number of coefficients and X is the regression matrix of x
How to define vector of coefficients
?!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/259818/image.png)
2 件のコメント
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!