%% Infoviz Exercise session 2. 
%%
%% Sample Matlab code for problem 3.
%% 3.2.2009. Laszlo Kozma <lkozma@cc.hut.fi>
%%
%% You can use this as a start if you have never used Matlab or similar system before.
%% The plot is very basic, it can be made nicer using some of the optional parameters of functions.
%% You can find out about them for example with 'help scatter' etc.
%%

I = load('iris_data.data');

for i=1:4,
	for j=1:4,
		%% Where are we drawing in the 4x4 grid
		subplot(4,4, (j-1)*4 + i);    

		%% Column i against column j with dots of size 8 and color according to last column
		scatter(I(:,i),I(:,j),8,I(:,5)); 

	end;
end;

