how to detect and measure Gaussian peaks ?

1 vue (au cours des 30 derniers jours)
khushboo chhikara
khushboo chhikara le 28 Avr 2018
Commenté : Walter Roberson le 30 Avr 2018
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 commentaire
Walter Roberson
Walter Roberson le 30 Avr 2018
Please do not close questions that have an answer

Connectez-vous pour commenter.

Réponses (1)

Ameer Hamza
Ameer Hamza le 28 Avr 2018
To find peaks in a 3D mesh you can use imregionalmax(). In your case
locationMax = find(imregionalmax(num));
maxValue = num(locationMax);
  13 commentaires
Ameer Hamza
Ameer Hamza le 28 Avr 2018
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
Ameer Hamza le 28 Avr 2018
@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.

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by