From: Alpana Gowdar on
Hi, I'm trying to print to a text file in one column so I can export this data into labview. But, I had trouble finding the syntax to do this.

Here's the code I have.

% Open a file for writing
fid = fopen('test_002.txt', 'wt');
% print values in one column (now rows)
fprintf(fid, '%f\c', data2);
fclose(fid);

Thanks in advance.