Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   How to read a Structure from a matlab file to a structure in Vc++ 2003 (http://www.velocityreviews.com/forums/t514049-how-to-read-a-structure-from-a-matlab-file-to-a-structure-in-vc-2003-a.html)

meisterbartsch 06-12-2007 03:17 PM

How to read a Structure from a matlab file to a structure in Vc++ 2003
 
Hi NG,

I want to load a structure from a matlab file (*.mat) into vc++. In
the best case I would have a matching structure in vc++ to acces the
data of the loaded matlab structure.

Model.torque.ratio=[1,0.5,0.2,0.1,0], in Matlab

should be

vector<double> Model.torque.ratio;

in VC++;


Therefor i tried to use http://www.mathworks.com/matlabcentr...bjectType=FILE
, Is there anybody who wrote a function to create a struct out of
matlab data?

Maybe there are other ways to read mat files in vc++?

Best regards

Patrick


red floyd 06-12-2007 03:39 PM

Re: How to read a Structure from a matlab file to a structure inVc++ 2003
 
meisterbartsch wrote:
> I want to load a structure from a matlab file (*.mat) into vc++. In
> the best case I would have a matching structure in vc++ to acces the
> data of the loaded matlab structure.
>
> [redacted]
>
> Is there anybody who wrote a function to create a struct out of
> matlab data?


We had to do it at my previous job, and no, I can't share the code, the
previous employer owns the rights, I don't have permission (or even
remember the specifics).

That said, read the MATLAB docs. All the info you need is there.

meisterbartsch 06-12-2007 08:47 PM

Re: How to read a Structure from a matlab file to a structure in Vc++ 2003
 
On 12 Jun., 17:39, red floyd <no.s...@here.dude> wrote:
> meisterbartsch wrote:
> > I want to load a structure from a matlab file (*.mat) into vc++. In
> > the best case I would have a matching structure in vc++ to acces the
> > data of the loaded matlab structure.

>
> > [redacted]

>
> > Is there anybody who wrote a function to create a struct out of
> > matlab data?

>
> We had to do it at my previous job, and no, I can't share the code, the
> previous employer owns the rights, I don't have permission (or even
> remember the specifics).
>
> That said, read the MATLAB docs. All the info you need is there.


Thank you for your quick answer,

I am going to check the docs tomorrow.

Patrick



All times are GMT. The time now is 03:23 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57