Mercurial > hg > aimmat
annotate aim-mat/tools/units/unit classes/@unitbag/getasraw.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 rawvalue=getasraw(bag,val,fromunit) |
tomwalters@0 | 2 % is used in generating units when the raw value is set for the first time |
tomwalters@0 | 3 uns=bagarray.units; |
tomwalters@0 | 4 rawunit=getrawunit(bag); |
tomwalters@0 | 5 |
tomwalters@0 | 6 for i=1:length(uns) |
tomwalters@0 | 7 name=getname(uns{i}); |
tomwalters@0 | 8 if strcmp(fromunit |
tomwalters@0 | 9 |
tomwalters@0 | 10 % todo |
tomwalters@0 | 11 end |
tomwalters@0 | 12 end |