how to detect and measure Gaussian peaks ?
3 次查看(过去 30 天)
显示 更早的评论
filename='14 - sampleMap.xlsx';
[num,txt,raw] = xlsread(filename);
[nx,ny] = size(num) ;
[X,Y] = meshgrid(1:nx,1:ny) ;
% pcolor(X,Y,num)
% mesh(X,Y,num) ;
% shading interp
a=findpeaks(X,Y)
回答(1 个)
Ameer Hamza
2018-4-28
locationMax = find(imregionalmax(num));
maxValue = num(locationMax);
13 个评论
Ameer Hamza
2018-4-28
Watching your excel sheet, it appears that the best way to show the data is through drawing a surface plot over a mesh.
Ameer Hamza
2018-4-28
@khushboo's answer moved here
"Ok .. means the coding done so far is correct ?"
If the graphs look fine for your purpose, it is correct.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!