473,405 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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<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
2 5140
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Zoran Stipanicev | last post by:
Hi! I have a code that looks some thing like this void function() { struct st1 { template<...> struct st2 {
5
by: maxwell | last post by:
I used to program in matlab An read an image file with : fread(a,,0) which gave me a matrix of 256*256 full of numbers which were the pidxel values from 0 to 256. How do i do the same in c++ ...
3
by: Dave Coate | last post by:
Hello again, I am going to re-post a question. I got some excellent suggestions from Rob and Mattias on this but their ideas did not solve the problem. Here is the original post: ...
6
by: Lars Christiansen | last post by:
Hi! I am a master student in (geo)physics at the University of Copenhagen and part of a study group on C++ as a scientific programming language. I, and the other students in the group, have...
1
by: MiMu | last post by:
hallo! i wanne use gsl under windows (visual c++, mex (matlab)). when i try to compile my little exeample (from gsl web-site) i will get a linker-error: undefined reference. so, is there...
1
by: abhiM | last post by:
Is there a way to use the MFC Application wizard from VC++ 2003 to assign area for Matlab plots(say in a dialog, as you would for a text box) and then generate the Matlab plots in that area? ,...
2
by: lord.tyranus.96 | last post by:
Hi wizards, does somebody know how to read a matlab file with visual basic .net . Thanks in advance.
2
by: obladi | last post by:
I have run MATLAB at Windows XP SP2. After several weeks of not using MATLAB, I found my MATLAB does not start up any more. When I double-click MATLAB icon, the error message says: Microsoft...
0
by: ursskmdali | last post by:
Hi, I have just created a sample in vc++ 6.0 to call MATLAB functions. Everything goes fine it compiles, builds fine with no errors and while executing it giving error like this "Missing ICU DATA...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.