I am trying to use the SAVE command to write variables in the MATLAB workspace to an ASCII text file. However, the ordering of the variables in the file appears to be independent of the ordering of the variables in the command.
For example, the ordering in the files generated by the commands below are the same:
x=1;y=2;z=3;save('test1.txt','x','y','z','-ascii');save('test2.txt','x','z','y','-ascii');save('test3.txt','z','x','y','-ascii');
Best Answer