Mercurial > hg > plml
view matlab/db/dbsaveas.m @ 0:0dd31a8c66bd
Initial check in to Mercurial, V.1
author | samer |
---|---|
date | Fri, 13 Jan 2012 15:29:02 +0000 |
parents | |
children |
line wrap: on
line source
function locator=dbsaveas(fn,x) % dbsaveas - Save object to MatBase using given name % % dbsaveas :: string, A -> action locator(A). % % Note: the file must not already exist; an error is raised if it does. fullfn=fullfile(dbroot,[fn,'.mat']); if exist(fullfn,'file'), error('dbsaveas:file exists'); end save(fullfn,'x'); locator=[fn '|x'];