How to return function handle from fit
Mostra commenti meno recenti
Now I need a function handle not a fit object, what should I do?
F_fitted = fit(Phi2_y',Phi2_Phi','gauss8');
This gives a fit object not a handle.
Risposte (2)
Steven Lord
il 12 Mag 2017
Write an anonymous function that simply evaluates the fit.
f = @(x) F_fitted(x)
Alternately, if you describe what function you're trying to call that accepts a function handle but not a fit object, we may be able to offer more specific guidance (or suggest that you file an enhancement request.)
Categorie
Scopri di più su Fit Postprocessing in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!