can anyone help me how to rotate an image using for loop
29 views (last 30 days)
Matt J on 12 Oct 2014
I can't see how you would do this without at least the size() command. You need that to determine the size of your loops.
Anyway, because this is homework, I will just give an example similar to what you are asking. Below is code to transpose a matrix purely with loops. I leave it to you to modify it as needed for a 90 degree rotation.