function compress_image
RGB = imread('weihnachtsbaum.jpg');
G = rgb2gray(RGB);
D = double(G);
X = mat2gray(D);
figure(1); 
subplot(1,2,1); imshow(X); title('Original');
[U,S,V] = svd(X);
for k = 5:5:min(size(U,1),size(V,1))
    X_comp = U(:,1:k)*S(1:k,1:k)*V(:,1:k)';
    subplot(1,2,2); imshow(X_comp);
    title('Komprimiert');
    pause;
end