// Read in marsrock.txt
lines(0);
[M, text] = fscanfMat("marsrock.txt");
//
sing=svd(M);
scf(0);
clf;
//n = 25; plot(1:n,sing(1:n),'rx',[1 n],[100,100],'g-');
clf;
Matplot(M);
fig=gcf(); fig.color_map=graycolormap(32);
scf(1);
clf;
[U,S,V] = svd(M);
m = zeros(M);
Matplot(m);
fig=gcf(); fig.color_map=graycolormap(32);
n = 100;
for i = 1:n,
	m = m + U(:,i)*S(i,i)*V(:,i)';
	Matplot(m)
	title(string(i));
	sleep(1000);
end;
