...
Just as you can read in values from a text file to a matrix, you can also write a matrix to a text file. The function for this is call dlmwrite. Consider the following line of code:
dlmwrite('output_file.txt', A , 'delimiter', ' ')
Output Important Values in Command Window
...