How can I copy the content of a *.m file in another. I used copyfile('1.m','2.m') but with this command the content of 2.m will be overwriten by the content of 1.m.
Ex: 1.m content: test1; 2.m content: test 2. I am expecting to get after using copyfile the content of 2.m like: test 2, test1.
I also used the next lines but it is not looking ok.. % fid = fopen('first.m'); % F= fread(fid, '*char')'; % fclose(fid);