How can I implement these equations in Matlab programming?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens

Hi guys, I got to analyse image that is created by Atomic Force Microscope so contains different height values. But I want to make sure I implement these equations correctly, can somebody please help. Would be much appreciated.
Best regards, Matiss
2 commentaires
Matt J
le 25 Sep 2015
It's hard to help unless you show us the code you've written.
Matiss Ozols
le 25 Sep 2015
Réponses (1)
If you have your height values in a 2D matrix Z, use
sa = mean2(abs(Z));
sq = sqrt(mean2(Z.^2))
sz = max(Z(:)) - min(Z(:))
3 commentaires
Matiss Ozols
le 25 Sep 2015
Modifié(e) : Matiss Ozols
le 25 Sep 2015
Muthu Annamalai
le 25 Sep 2015
@Matiss - you need to divide by area if you want normalized numbers. You can be rest assured these results from code by @Thorsten is only off by a constant scale factor (of area of image in question with additional fixed constants) from this other software you are mentioning.
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!