امیدوارم کمک کنه :
function [result]=fnImageRotation(img,thet)
% Get size of the image matrix
% m : number of rows
% n : number of columns
[m,n,p]=size(img);
if thet>1 | thet<0
thet=thet/100;
end
mm = m*sqrt(2);
nn = n*sqrt(2);
for t=1:mm
for s=1:nn
i =...