%function outStr = andStructs(strCell)
%  strCell is a cell array of structs
function outStr = andStructs(strCell)

outStr = [];
fields = fieldnames(strCell{1});
for i=1:length(fields),
	isField = 1;
	for j=1:length(strCell),
		if ~isfield(strCell{j},fields{i}),
			isField = 0;
			break;
		end
	end
	if isField,
		outStr = setfield(outStr,fields{i},getfield(strCell{1},fields{i}));
	end
end
