function a = set(a, attr, val)
% set - Generic method for setting object attributes.
% Author: Cengiz Gunay <email@example.com>, 2004/10/08
% Copyright (c) 2007 Cengiz Gunay <firstname.lastname@example.org>.
% This work is licensed under the Academic Free License ("AFL")
% v. 3.0. To view a copy of this license, please look at the COPYING
% file distributed with this software or visit
a.(attr) = val;