1

is it possible to export an array from MATLAB to C# directly, without the need to copying and pasting the value in C#?

Thanks

2 Answers 2

1

MATLAB has a COM automation interface that will let you control an instance of MATLAB programmatically from a .NET program and has functions named PutFullMatrix and GetFullMatrix that facilitate transferring a matrix from C# to MATLAB or vice versa. See the External Interfaces section of the MATLAB manual for details.

http://www.mathworks.com/help/techdoc/matlab_external/f135590.html#f135616

Sign up to request clarification or add additional context in comments.

Comments

1

I would just save the array to a text file in MATLAB and read in the text file from C#.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.