head	1.1;
access;
symbols;
locks
	jonh:1.1; strict;
comment	@// @;


1.1
date	2000.03.24.14.08.25;	author jonh;	state Exp;
branches;
next	;


desc
@null
@


1.1
log
@null
@
text
@function [sn_sub,text_label] = multi_select_experiment(sn, sub_desc)
% sn -- full experiment
% sub_desc -- cell array of key-value pairs

sel_from = sn;
text_label = '';
while (length(sub_desc)>0),
	sub_key = char(sub_desc{1});
	sub_val = char(sub_desc{2});
	if (length(sub_desc)>2),
		sub_desc = sub_desc(3:end);
	else
		sub_desc = {};
	end
	text_label = strcat(text_label, sprintf(' %s=%s', sub_key, sub_val));

	sel_from = select_experiment(sel_from, sub_key, 'equal', sub_val);
end
sn_sub = sel_from;
@
