I have 2 values (out1 and out2) I want to write to a file without skipping a line. I have tried the following code but out1 is on the first line and out2 is on the second line.
fid = fopen('exp.txt','w');
fprintf(fid,[out1 out2]);
fclose(fid);
MATLABwrite several values to single line of output file
Best Answer