Getting nested loop counters

Versione 1.2.0.0 (1,31 KB) da Weidong
A little tiny program used to print out your nested loop counters
336 download
Aggiornato 8 mar 2011

Visualizza la licenza

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.

Cita come

Weidong (2026). Getting nested loop counters (https://it.mathworks.com/matlabcentral/fileexchange/30626-getting-nested-loop-counters), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2009a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e MATLAB Answers
Versione Pubblicato Note della release
1.2.0.0

1. Based on Jos's comment, delete "clear all;"
2. Yes, it is a good idea to write a function, will prepare it at a later time.
3. Depending upon your application, it may be useless, while it might be helpful to somebody else if not for everyone.

1.1.0.0

Add university name

1.0.0.0