Mercurial > hg > map
view testPrograms/termp.m @ 36:3ea506487b3b
changes to multiThreshold
author | Ray Meddis <rmeddis@essex.ac.uk> |
---|---|
date | Tue, 20 Sep 2011 14:04:47 +0100 |
parents | 25d53244d5c8 |
children |
line wrap: on
line source
DRNLParams.a=10; paramChanges={'DRNL.a=2;'} for idx=1:length(paramChanges) x=paramChanges{idx}; st=x(1:strfind(x,'.')-1); fld=x(strfind(x,'.')+1:strfind(x,'=')-1); x1=eval(['isstruct(' st ')']); x2=eval(['isfield(' st ',''' fld ''')']); if ~x1*x2 disp([' paramChange is faulty: ' x]) end end