
%create some fictitious data...
mydata=randn(100,3);

%we use curly braces to define a cell array of the labels.  This lets us use labels with different lengths, and lets us call them one whole label at a time.
xlinfo = {'first label', 'second one', 'etc'};

for i=1:3,
	subplot(2,2,i); cogs109hist(mydata(:,i));
	ylabel('coolness');

	
	%note that here we use the curly brace to index the array, not parentheses - this is important
	xlabel(xlinfo{i});
	
end