Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab data to c# help

  1. Apr 4, 2012 #1
    matlab data to c# help!!!


    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.

  2. jcsd
  3. Apr 5, 2012 #2


    User Avatar
    Gold Member

    Re: matlab data to c# help!!!

    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook