Hi, I am fairly new to matlab and I am really trying to understand how to do a simple for loop for adaptive thresholding! Can a professional break down the lines of code needed line by line please? I have done the googling but that is frustrating due to lacking understanding! The tabs are nice but it too is challenging when there's no one to clarify coding issues or anomalies as well as my errors. Can someone point me to a source of the basic codes as for loops and while loops etc? I would like to thank you immensely in advance!