how to calculate wavelength of texture ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Lyhour Chhay
el 24 de En. de 2022
Comentada: Star Strider
el 25 de En. de 2022
I have the texture the wavelength as in the figure attachment. I want to calculate the distance from one peak to one peak as show in the figure. How can I calculate it ? thank you very much![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/871590/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/871590/image.png)
0 comentarios
Respuesta aceptada
Star Strider
el 24 de En. de 2022
Consider using the smoothdata function to eliminate the high-frequency noise. After that, first, use the detrend function to remove the varying baseline (this makles the peak amplitudes and location determinations more reliable), then use findpeaks or islocalmax to locate the peaks. (There are other options if detrend does not produce acceptable results, however it is always the first option I use.)
12 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!