clc;
clear;
I=imread('lena.jpg');
scale = 0.5;
scale1 = imresize(I,scale);
% Try varying the scale factor.
theta = 30;
rotate = imrotate(I,theta);
% Try varying the angle, theta.
subplot(2,2,1);imshow(I); title('Original Image');
subplot(2,2,2);imshow(scale1); title('scale');
subplot(2,2,3);imshow(rotate); title('Rotate');