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?
Mostra commenti meno recenti
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
?!
2 Commenti
Stephen23
il 5 Gen 2020
"How to define vector of coefficients"
Abdelwahab Afifi
il 5 Gen 2020
Risposte (1)
Nicolas B.
il 5 Gen 2020
0 voti
I would be you, I would use a vector input and then, you return a vector.
1 Commento
Abdelwahab Afifi
il 5 Gen 2020
Categorie
Scopri di più su Matrices and Arrays in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!