Borrar filtros
Borrar filtros

how to fit this surface ?

2 visualizaciones (últimos 30 días)
khushboo chhikara
khushboo chhikara el 30 de Abr. de 2018
Respondida: Ameer Hamza el 30 de Abr. de 2018
I want to fit this surface using gaussian.
filename='14 - sampleMap.xlsx';
[num,raw,txt] = xlsread(filename);
txt=cell2mat(txt)
figure,plot(num,'DisplayName','num')
figure,mesh(num)

Respuestas (1)

Ameer Hamza
Ameer Hamza el 30 de Abr. de 2018
You can use fit() function from Curve Fitting Toolbox. For Gaussian surface fitting use it as
fit([x, y], z, 'a*exp(-( ((x-b)/c)^2 + ((y-d)/e)^2 ) ) + f')
the character array specifies the general Gaussian function in 2D.

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by