Write a MATLAB function that takes an image in the form of a
Write a MATLAB function that takes an image (in the form of a matrix) as an input, rotates it 180 degrees, and then returns the rotated image matrix as an output.
content/attachment/574684a5-4aec-4aaf-9ec9-2b662814bf51/Assignments/2eaSfled-0ef8- 4017-b969-88ab96647230/R 2 [Collaboration] Write a MATLAB function that takes an image (in the form of a matrix) as an input, rotates it 180 degrees, and then returns the rotated image matrix as an output. For example if this was your input imageSolution
I=imread(\'Image\');
J=imrotate(I,90);
imshow(J);
Here, first the image is read as a matrix and stored in I.
Then, the \'imrotate\' function takes I as an argument and the number of degrees to rotate as the second arguement. It returns the rotated image that is stored in J.
Finally, the \'imshow\' function displays the rotated image that is J.
