points = [0 0 1
          1 0 1
          1 1 1
        .5 1.5 1
          0 1 1
          0 0 1];
p = plot(points(:,1), points(:,2), 'EraseMode', 'background');
hold on
axis([-10, 10, -10, 10]);
angle = pi/100;
rot = [
    cos(angle)   sin(angle) 0
    -sin(angle)  cos(angle) 0
    0           0           1];

while 1
    pointOut = points*rot
    points = pointOut;
    set(p, 'XData', points(:,1), 'YData', points(:,2))
    drawnow
end
