annotate aim-mat/tools/units/unit classes/@unitconvertermultadd/fromunits.m @ 4:537f939baef0 tip

various bug fixes and changed copyright message
author Stefan Bleeck <bleeck@gmail.com>
date Tue, 16 Aug 2011 14:37:17 +0100
parents 74dedb26614d
children
rev   line source
tomwalters@0 1 function newval=fromunits(un,oldval)
tomwalters@0 2 mlt=un.multiplier;
tomwalters@0 3 ad=un.add;
tomwalters@0 4 % newval=(oldval*mlt)+ad;
tomwalters@0 5 newval=(oldval-ad)/mlt;