Group a function's input arguments into a matrix input argument
Afficher commentaires plus anciens
I'm generating two separate functions from symbolic expressions that share parameters so i can fit two datasets simultaneously.
However, each symbolic expression uses upwards of 6 input parameters plus the variable, and the function handle specifies them all individually. For the simultaneous fitting I need al those input variables (the parameters) to be grouped up into a matrix so I can generate a composite function that will fit both datasets simultaneously to the same parameters.
How do I group these input variables in the function @(A0,k1,k2,k3,k4,k5,tau)-... into a function @(par,tau)-....
where par = [A0,k1,k2,k3,k4,k5] ?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Variables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!