title: printing text into a file in Matlab
body: <p>I want to log the running of my program, specifically the running time of each part. At this moment I print to the screen using <code>disp</code>. Is there a way so that some of the things I print would also be printed into a text file?</p>