DIARY2M Converts diary of matlab session into executable m-file. DIARY2M(FILEOUT,FILEIN) processes the "diary" file FILEIN, removes MATLAB prompt ">>", displayed results and messages so that only issued commands themselves are left. The result is written into a file FILEOUT. DIARY2M by itself uses get(0,'diaryfile') as input file and DIARY.M as output file. Warning: the output file may still contain errors and may need some additional editing before execution.