Mercurial > hg > plml
view matlab/db/dbsaveas.m @ 20:c7ea49d19055
Import library(debug) explicitly; removed spurious \n from debug messages.
author | samer |
---|---|
date | Thu, 09 Feb 2012 11:16:36 +0000 |
parents | 0dd31a8c66bd |
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'];