I would like to compare the gradients of different lineprofile at the same spot using Matlab. An example for a picture I am working with is the .tif file in the appendix. I marked two points in the png file where the gradient should be calculated. I would specify the x values because the y values will differ between the images. Is there a special operation I can use the gradient or is there a possibility to receive the y values from predefined x values in a lineprofile? I nearly have knowledge in using matlab but it will help me a lot if I knew what keywords I should look for.
Thank you in advance!
PNG:
TIF: