comparison matlab/db/contents.m @ 0:0dd31a8c66bd

Initial check in to Mercurial, V.1
author samer
date Fri, 13 Jan 2012 15:29:02 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0dd31a8c66bd
1 % *** db :: functions for dealing with MAT file database
2 %
3 % The Prolog-Matlab interface module plml requires these functions
4 % to manage a database of MAT files and a few other tasks. The MAT
5 % file database (matbase) is stored in the file system under a root
6 % directory specified by a call to dbroot, eg to specify the
7 % directory lib/matbase off your home directory on a host named
8 % 'godzilla' (the host name must be supplied to allow for multiple
9 % hosts to use the same root directory):
10 %
11 % dbroot('~/lib/matbase','godzilla');
12 %
13 % From this point, any calls to dbsave will result in files being
14 % created under ~/lib/matbase/godzilla. MAT files in the matbase
15 % are referred to using a locator, which is a string of the form
16 %
17 % <host>/<path>/<filename>|<varname>
18 %
19 % This refers to a Matlab variable named <varname> in a MAT file
20 % whos path is constructed using the matbase root, the host name,
21 % and the <path> component of the locator. Eg, after the above
22 % dbroot statement, the locator
23 %
24 % 'godzilla/d0608/m34521|x'
25 %
26 % refers to the MAT file ~/lib/matbase/godzilla/d0608/m34521.mat
27 % NOTE: this is probably not going to work for Windows users due
28 % to silly slash vs backslash file separator issues.
29 % The functions in this directory are:
30 %
31 % dbdrop - delete matfile at given locator from matbase
32 % dbload - Load value from given matbase locator
33 % dbpath - Return full path of matfile given locator
34 % dbread - Load values from ASCII file under matbase tree
35 % dbroot - Set or retrieve Matbase root directory
36 % dbsave - Save object to MatBase using given name
37 % dbsaveas - Save object to MatBase using given name
38 % dbtmp - Save object to matbase under tmp subtree
39 % typecode - Return basic typing information about a value
40 % uniquefile - Allocate a unique unused filename
41 % uniquevar - Allocate a unique unused variable name
42