image thumbnail

Getting nested loop counters

version 1.2.0.0 (1.31 KB) by Weidong
A little tiny program used to print out your nested loop counters

334 Downloads

Updated 08 Mar 2011

View License

When I did image processing, I need to print out the coordinates (corresponding to the inner and outer loop counters) associated with the image points

How to define a matrix L which can sequentially store the counters for each loop is a little tricky, that is the definition (expressed by variables formed by inner and outer loop counters) of the counter for L is not simple as 1 2 3. (It seems so easy, is it?)

Hopefully this is helpful to somebody.

Cite As

Weidong (2021). Getting nested loop counters (https://www.mathworks.com/matlabcentral/fileexchange/30626-getting-nested-loop-counters), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!