Mercurial > hg > plml
view matlab/db/dbload.m @ 9:60b7b78b3167
Removed utility Prolog libraries, which are now a prerequisite (package plcore);
Moved cellmap.m from matlab/general to matlab/db/dbcellmap.m.
author | samer |
---|---|
date | Fri, 20 Jan 2012 16:46:57 +0000 |
parents | 0dd31a8c66bd |
children |
line wrap: on
line source
% dbload - Load value from given matbase locator % % dbload :: locator(A) -> A. % SA: 2008-06 - much simplified by using functional form of load function x=dbload(loc) n=strfind(loc,'|'); if n>1, x=getfield(load(fullfile(dbroot,loc(1:n-1))),loc(n+1:end)); else error('dbload:badlocator',sprintf('%s is not a valid locator',loc)); end