and finally after the loop finishes y has a dimension on workspace <1x3x100 double> with class double now the problem is that I CAN'T PLOT MY FINAL ARRAY DUE TO ITS DIMENSION I WANT THIS ARRAY DIMENSION TO BE <3x100> any alternate way to do this ....