MATLAB: How do you insert a line of text at the beginning of a file? - Stack Overflow
Option 1: I would suggest calling some system commands from within MATLAB. One possibility on Windows is to write your new line of text to its own file and then use the DOS for command to concatenate the two files. Here's what the call would look like in
stackoverflow.com |