Mercurial > hg > aimmat
view aim-mat/tools/@frame/plus.m @ 0:74dedb26614d
Initial checkin of AIM-MAT version 1.5 (6.4.2011).
author | tomwalters |
---|---|
date | Fri, 20 May 2011 12:32:31 +0100 |
parents | |
children |
line wrap: on
line source
% method of class @frame % % INPUT VALUES: % % RETURN VALUE: % % % (c) 2003, University of Cambridge, Medical Research Council % Stefan Bleeck (stefan@bleeck.de) % http://www.mrc-cbu.cam.ac.uk/cnbh/aimmanual % $Date: 2003/06/11 10:46:32 $ % $Revision: 1.1 $ function fr=plus(a,b) % addition % einfachster Fall: Addiere eine konstante Zahl % sonst: Addiere die beiden Frames if isnumeric(b) a.values=a.values+b; fr=a; return end if isobject(a) a.values=a.values+b.values; fr=a; return end