From: Joseph Cohen on 2 Jul 2010 10:04 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? I know that the load and save functions can read or save mat files (which are binary files of variables) but they create a disk file, I just want the data to be stored in the database then taken out without saving it to a location other than the database. Thank You!
From: Steven Lord on 2 Jul 2010 10:07 "Joseph Cohen" <hypergrapes(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 slord(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
From: Joseph Cohen on 2 Jul 2010 10:15 "Steven Lord" <slord(a)mathworks.com> wrote in message <i0krq8$g34$1(a)fred.mathworks.com>... > > "Joseph Cohen" <hypergrapes(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 > slord(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).
From: TideMan on 2 Jul 2010 17:21 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?
From: James Tursa on 2 Jul 2010 17:58 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
|
Next
|
Last
Pages: 1 2 Prev: How to integrate virtual reality window into a guide Next: RLGC TRANSMISSION LINE |