How to plot a Height height correlation function from AFM image?
2 views (last 30 days)
Show older comments
Hello,
I have some AFM images and I use Gwyddion and Matlab. I would like to have the PLOTS of the height-height correlation function. I would like to have these plots either for one directional displacement or for a radius displacement among some reference points , The plot i am looking for should look like exacttly the attached picture !
Can you provide me maybe with Matlab a code make these plots ?? Thank you in advance!

4 Comments
John D'Errico
on 9 Jun 2014
Thank you for making this a question instead of an answer. As a question, it will be seen, and hopefully answered. As an answer itself, it would probably have gone unseen and unanswered.
BASANTA KUMAR PARIDA
on 2 Jun 2018
Answers (2)
Star Strider
on 9 Jun 2014
Check to see how they calculated the data for the plot in the paper. It looks like a cumulative distribution function of some sort. The cumtrapz function might be what you want.
It looks like they also fitted a line to it. Using polyfit with a 3rd order polynomial might be what you want for that.
5 Comments
Star Strider
on 9 Jun 2014
Efthymios — In line with John’s relevant discussion in his most recent comment, I very strongly suggest you use the procedure and techniques accepted by the literature in your area of research. Those techinques should be described in the ‘Materials and Methods’ section of original research papers on the topic, both to generate your data and to fit it.
If you simply want the model-free cumulative sum, it would be appropriate for you to use cumtrapz or its relative, cumsum (linked to at the end of the ‘cumtrapz’ documentation page). Choose whatever best suits your needs. If you need to sum across the other dimension (the dimension you are not summing with cumsum or cumtrapz) first, see the documentation for sum, and sum across the appropriate dimension, then do cumsum or cumtrapz across the results of the sum operation. (I’m not quite certain what you are exactly doing, so I’m guessing a bit here.)
John — Kodak had excellent products. I had several Kodak digital cameras (unmatched colour quality, in my opinion) and at least one printer, strictly for photographic use for the same reason. I certainly recommend your File Exchange contributions and that Efthymios explore them to see if they solve the problem. Just now, we don’t quite know.
BASANTA KUMAR PARIDA
on 2 Jun 2018
I also want this HHCRF but I am not getting these from elsewhere.
0 Comments
See Also
Categories
Find more on Spline Postprocessing 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!