give constant parameters to fitnlm
Ältere Kommentare anzeigen
I want to use fitnlm (rather than fminsearch and a cost function) because it has the built in statistics. I need to run the fit of the model with different costant parameters but I am not able to tell the function to pick a parameter from the workspace (the function return an error if I give three arguments like @(parameterToOptimise,xData,constantParameter).
My example is:
fit function
and the values to fit are y and I have a constraint on the area under the curve that is A (depending on the fit problem).
I would like to write
@(α,x,Area)[(α+1)*Area/(
-
)*
] (luckly
and
are constant, so I can write the numerical values), but I am not able to give a constant parameter to the function
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Electromechanical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
