Converting mxArrays to libpointer in MATLAB block
Show older comments
I have an extrinsic function - foo(), with a prototype similar to below:-
[uint32, voidPtr, uint32Ptr] = foo(voidPtr, uint32Ptr);
I have created a uint32 pointer using libpointer and passed it to the calllib function call of foo(). Now code generation causes these types to be converted to mxArrays. So to convert these mxArrays to known types, we assign them to pre-defined variables of the desired type. But for me, the desired type is uint32Ptr. How do I pre-define a variable of type uint32Ptr as the result of libpointer is also an mxArray? Or, is there a way to declare a variable of type uint32?
Accepted Answer
More Answers (0)
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!