Does anyone know if cftool can handle fits of data with more than 3 dimensions? i.e., hyperdimensional surface fits? Thanks in advance.

 Réponse acceptée

Matt J
Matt J le 14 Jan 2021
Modifié(e) : Matt J le 14 Jan 2021

1 vote

3 commentaires

Clay Fulcher
Clay Fulcher le 14 Jan 2021
Thanks Matt for your fast reply. lsqcurvefit looks to be set up like fmincon, which I am familiar with. To use lsqcurvefit, would I need to define the spline fitting algorithm in the objective function myself? Or is there a pre-packaged spline fit similar to "thin-plate spline" used in cftool that I can use with lsqcurvefit?
Matt J
Matt J le 14 Jan 2021
Modifié(e) : Matt J le 14 Jan 2021
You haven't mentioned anything about splines in your original post, so I don't know where it fits into anything...
You need to supply a function which generates the hypersurface for any guess of the parameters.
Clay Fulcher
Clay Fulcher le 14 Jan 2021
Ok, thanks. That's what it seemed to me. Yes, this data does not fit any kind of closed-form model that I can think of very well. I've been using the cftool interpolation option for this data, and the "thin-plate" spline does a decent job. One day I'll try to write a hyperdimensional spline fitter, but I'm in kind of a hurry. Thanks for your help.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange

Produits

Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by