From: Joseph Cohen on
"James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <i0lndc$t4e$1(a)fred.mathworks.com>...
> TideMan <mulgor(a)gmail.com> wrote in message <0b01ffe8-d931-4ae5-8142-6dfaabee73bb(a)v21g2000prd.googlegroups.com>...
> > On Jul 3, 2:15 am, "Joseph Cohen" <hypergra...(a)hotmail.com> wrote:
> > > "Steven Lord" <sl...(a)mathworks.com> wrote in message <i0krq8$g3...(a)fred.mathworks.com>...
> > >
> > > > "Joseph Cohen" <hypergra...(a)hotmail.com> wrote in message
> > > >news:i0krkm$4ol$1(a)fred.mathworks.com...
> > > > > Hello,
> > >
> > > > > I am trying to store Matlab variables in a database in binary form, then
> > > > > read them back as matlab variables. What is the best way to do this?
> > >
> > > >http://www.mathworks.com/products/database/
> > >
> > > > --
> > > > Steve Lord
> > > > sl...(a)mathworks.com
> > > > comp.soft-sys.matlab (CSSM) FAQ:http://matlabwiki.mathworks.com/MATLAB_FAQ
> > > > To contact Technical Support use the Contact Us link on
> > > >http://www.mathworks.com
> > >
> > > Sorry, I wasn't clear. I'm already using the database toolbox. The problem is storing the data in binary form (as a BLOB) and then reading it back as opposed to some other form  (ie: text).
> >
> > Maybe I'm more than usually dense this morning, but if you don't write
> > them to disk, then aren't they already sitting in RAM as binary data,
> > available as variables in Matlab? Why do you need to store them at
> > all? And if you do store them, don't you have to write them to disk?
>
> I think OP just wants to write them in binary form to the database for later retrieval. This topic comes up occasionally here on the newsgroup. Essentially what is needed is a way to write variables to a block of memory and then pass that to the database for storage. I am unaware of an official MATLAB function for doing this.
>
> Q for OP: What type of variables are you writing? Just double arrays, or do you need the capability to write any kind of variable (cell, struct, int8, etc.)? e.g., you could write the variable to memory block using a MAT format using the published MAT file standard guidelines.
>
> James Tursa

Just a matrix of doubles.