"James Tursa" wrote in message <email@example.com>... > "Jeff" wrote in message <firstname.lastname@example.org>... > > As a followup question, what is the best way to export data from a C program on Linux (on a system which does not have MATLAB on it) to be used in MATLAB? > > > > Just to add some detail: my advisor thinks I should just printf the data. But there is a lot of data, might this be too much for MATLAB to accept in a text file? Is there a better way? > > > > Thanks. > > Best way typically is to simply write the data out to a binary file and then use fopen/fread on the MATLAB side to read it in. Takes less time, less storage, and avoids roundoff differences when compared to a text file approach via printf. > > James Tursa
Thanks, James. Since you're speaking to a C and MATLAB newbie, could you provide a line or two of code to clarify "write data out to a binary file"?