You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). Getting nested loop counters (https://www.mathworks.com/matlabcentral/fileexchange/30626-getting-nested-loop-counters), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (1.31 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.2.0.0 | 1. Based on Jos's comment, delete "clear all;"
|
||
| 1.1.0.0 | Add university name |
||
| 1.0.0.0 |
