Help: Convert MATLAB Data to C# for XNA Game

  • Context: MATLAB 
  • Thread starter Thread starter li4ngx
  • Start date Start date
  • Tags Tags
    Data Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 3K views
li4ngx
Messages
1
Reaction score
0
matlab data to c# help!

hi,

i am trying to use data obtained from MATLAB as input for controls of a simple game in c# xna.

i am thinking of extracting the output from MATLAB as .txt file, which will be read and process by c#. Am I on the right direction, and how do I go about doing so?

Thanks in advance.

Regards.
 
on Phys.org


You can use fprintf to save to file in MATLAB and then use whatever file I/O is in C# to read the data in.