Path: news.mathworks.com!not-for-mail
From: "Hui Song" <john.doe.nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Save with -struct option
Date: Wed, 12 Mar 2008 14:23:02 +0000 (UTC)
Organization: Fundan University
Lines: 33
Message-ID: <fr8p06$7fl$1@fred.mathworks.com>
References: <fr8hi2$b2m$1@fred.mathworks.com> <fr8j4l$3p7$1@fred.mathworks.com> <fr8n9q$7n2$1@fred.mathworks.com>
Reply-To: "Hui Song" <john.doe.nospam@mathworks.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1205331782 7669 172.30.248.38 (12 Mar 2008 14:23:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 12 Mar 2008 14:23:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 222374
Xref: news.mathworks.com comp.soft-sys.matlab:456799



"Ben " <basburywvu.nospam@hotmail.com> wrote in message 
<fr8n9q$7n2$1@fred.mathworks.com>...
> "Hui Song" <john.doe.nospam@mathworks.com> wrote in 
message 
> > Hi Ben
> > TO tell the truth, i rarely use save cause of the 
> > inconvenience. Here recommend you to use the new 
mexload 
> > and mexsave created by myself. You do not need to 
create 
> > the struct any more and you can use it either in matlab 
> > 2007+ or 6.5.
> > Here is the example.
> > mexsave(filename, 'w', 'name1', rand(5,1), 'name2', rand
> > (5,1), ....);
> > Enjoy.
> > the link is
> > http://rapidshare.com/files/97196537/
loadsave.rar.jpg.html
> > and pls save it to loadsave.rar.
> > It includes mexsave, mexload and mexdelete.
> 
> I like the idea of doing it in a Mex file but I it may be
> difficult to justify its use due to the software
> configuration control system that I am currently working
> under.  I will check out those functions but I will 
probably
> have to save them for a different application.
Normally it is suitable for windows.
Pity.
Then you can try this:
assignin('caller', 'name1', rand(5, 1));