function I = ImageFrom3DVector(v)
%%	ImageFrom3DVector(v)	Displays an image whose RGB-values are determined by the coordinates of v

% This is an example of a "loop", 
% which creates a stack of three matrices
% containing integers that MATLAB can use
% as RGB pixel values in an image
for i = 1:3 									% execute the line below 3 times
	I(:,:,i) = uint8(repmat(v(i),600,900));		% repeat the number stored in v(i) across a 600x900 matrix
	end											% every loop statement needs an "end"

	% Display the image stored in I
	imshow(I);

