How to fit a monotonically increasing map to a certain data?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tokdemir Ibrahim Kerem
el 7 de Abr. de 2020
Comentada: Tokdemir Ibrahim Kerem
el 9 de Abr. de 2020
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 comentarios
Respuestas (1)
darova
el 8 de Abr. de 2020
Try
f = fit([x(:) y(:)],z(:),'poly11');
% or manually
% f = fit([x(:) y(:)],z(:),'a*x+b*y+c');
Ver también
Categorías
Más información sobre Spline Postprocessing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!