Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Manipulation of mxArray struct into c++ code

$
0
0
Hi everyone,

I am currently discovering the mex file programmation since I need to increase the compute speed of a matlab function (which uses a huge loop to solve a differential equation in time). This function needs many arguments (including three structures) and returns an array.

My questions :

1. Could you tell me what is the most efficient way : starting by converting my mxArray stuctures into standard c++ structures or should I only use mxArray object in my c++ file ?

2. If I should convert my structures : is there an easy way to do this ? I have something like 20 fields by structure, it seems to be a little bit onerous to assign each mxArray structure field to each c++ structure field manually...

I'm sorry for my weak skills in english. ..I swear I do my best.
Thank you !

Viewing all articles
Browse latest Browse all 19628

Trending Articles