title: For loops exercise in matlab
body: <p>i am a beginner in MATLAB and i am asked to do an exercise to learn for loops. I have 5 numbers , 1 till 5 ( 1 , 2 ,3 ,4 ,5) and each of this number will exhibit a transformation process that consists of four stages such that for example  for 5  ( 5 will be --> 5( at the end of first stage) 4 ( at the end of second stage  3( third stage ) 2( second stage) 1 ( first stage)) , for 4 ( 4 ,4 ,3,2 ) , for 3 ( 3 , 3 ,3 ,2) , for 2 ( 2 ,2 ,2 ,1 ) and for 1 ( 1 1 1 1) . I need to output ( for each number ) the result at each iteration ( for example for 5 --> 5 ( iteration 1) , 4 (iteration 2 ) and so on ) , so can any one help me in this exercise ? Its confusing for me as a beginner . Thank you</p>