function b = get(a, attr)
% get - Defines generic attribute retrieval for objects.
% Author: Cengiz Gunay <firstname.lastname@example.org>, 2004/09/14
% Copyright (c) 2007 Cengiz Gunay <email@example.com>.
% 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
b = getfield(struct(a), attr);