How to fit a monotonically increasing map to a certain data?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Assume that I have data, x,y,z all of them are 1xN double. I want to fit a surface with fit([x,y],z,FitType). I want my surface to increase monotonically in x and y. How can I achive this?
Thanks for any advice in advance.
0 commentaires
Réponses (1)
darova
le 8 Avr 2020
Try
f = fit([x(:) y(:)],z(:),'poly11');
% or manually
% f = fit([x(:) y(:)],z(:),'a*x+b*y+c');
Voir également
Catégories
En savoir plus sur Spline Postprocessing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!