how to fit this surface ?
6 views (last 30 days)
Show older comments
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)
0 Comments
Answers (1)
Ameer Hamza
on 30 Apr 2018
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.
0 Comments
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!