By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

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

P: n/a
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<doubleModel.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

Jun 12 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
Jun 12 '07 #2

P: n/a
On 12 Jun., 17:39, red floyd <no.s...@here.dudewrote:
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

Jun 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.