For Programmers: Free Programming Magazines  


Home > Archive > Matlab > January 2008 > MEX files and memory allocation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MEX files and memory allocation
brian

2008-01-30, 11:15 pm

Hello,

All I want to be able to do is have MATLAB and an outside application communicate via memory block allocation.

How do I do this with MATLAB MEX-files?

1) In MATLAB (in the MEX file), I would like to be able to specify a pointer and then read the corresponding data.

2) In MATLAB (in the MEX file), I would like to be able to write data to a memory block, and then find out the pointer (so that I can give it to the other application)

The MEX tutorials on the web are _deficient_ and apparently use out-of-date code examples. Any help would be greatly appreciated.

Thanks,
Brian
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com