MATLAB: Rotate an image by a given angle

angleimageimrotateMATLABrotate

I have an image. I want to rotate this image by a given angle. How do I do this?  

Best Answer

To rotate an image by a given angle, you can make use of the "imrotate" function in MATLAB.
As an example :
>> I = imread('pout.tif');
>> J = imrotate(I,20);
>> imshow(J);