clear;clc;x = 1:0.2:1.8;
y = 2:0.2:3;
z=[ 2 5 2 2 2;2.1 2.1 2.1 2.1 2.1;2 2 2 2 2;3 3 3 3 3;1 1 1 1 1;2.5 2.5 2.5 2.5 2.5];
[X,Y] = meshgrid(x,y);
xyc = [mean(x), mean(y)];% Rotate about the center
angel = 30;
R = [cosd(angel), -sind(angel); sind(angel), cosd(angel)];
XY = xyc' + R * ([X(:) Y(:)]-xyc)';
XR = reshape(XY(1,:),size(X));
YR = reshape(XY(2,:),size(Y));
surf(X,Y,z);
hold on;surf(XR,YR,z);