%%%%
%%%% performs some operation in entire structures in matlab session
%%%%
%%%% trying to estimate ranges of contents of structures?
%  2008/03/20
%%%%


clear V vars om

vars=who;

for v=1:length(vars),
    if isstruct(eval(vars{v})),
	fn=fieldnames(eval(vars{v}));
	for j=1:length(fn),
	    I=findstr(fn{j},'con');
	    if ~isempty(I),
		V=eval([ 'vertcat(' vars{v} '.' fn{j} ');']);
		if ~isstruct(V) & ~iscell(V),
		    om=round(minmax(V));
		    disp([ vars{v} '.' fn{j} '={' num2str(om) '};']);
    	        end;
	    end;
	end;
    end;
end;


