Passing DataTypes from MatLab to C#

I am a Matlab newbie, sorry for this basic question... I am trying to format the data in matlab to resemble something like a byte array so my function in c# can read it. Any suggestions.
Example of what I hope is possible.
MatLab.send(someArray of uint8 values) => C#.receive(byte[] inputData)
Thanks in advance.

回答(3 个)

Chris Crain
Chris Crain 2011-7-16

0 个投票

I looked through the document for loadLibrary, the only thing I seen that could remotely work was libpointer but I tried that and it did not work.
MatLab side:
data = libpointer('uint8', 255);
C# side (Intptr inputData) this errors out. ??? Error: Type mismatch, argument 1

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by