how to fit this surface ?

6 次查看(过去 30 天)
khushboo chhikara
khushboo chhikara 2018-4-30
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)

回答(1 个)

Ameer Hamza
Ameer Hamza 2018-4-30
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.

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by