Compiler: Load shared data
2 views (last 30 days)
Show older comments
Hey,
here is what I want to do: I want to load some data into memory which is shared among Matlab functions in a shared library. I don't need that data in my C++ application. One way would be to use a global variable in all these Matlab functions and call a function to initialize it before calling those functions. Is there a more elegant way to do this?
0 Comments
Answers (1)
Image Analyst
on 5 Nov 2012
They can all read in the same mat file. Do each of these functions want to change the variables and have the updated variables available in the other functions? Then see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!