Not helpful.... so is the question to the readers. If it doesn’t do what you want why is it hard for you to explain where it doesn't meet the requirements. Well good luck then, what’s so difficult in reading the link?? Where is the illustration of the code that you tried?? If you had taken the time to read the link and the purpose of a for loop this statement would have been avoided.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.