Mercurial > hg > plml
view matlab/db/dbsaveas.m @ 35:af5fa681278e
Fixed warning.
author | samer |
---|---|
date | Thu, 06 Feb 2014 14:47:53 +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'];