Problem:
Question 1- Assume we have a matrix, M. Using the dlmwrite function, write the MATLAB code to write the matrix to a file named "myfile.txt", and have the content of the matrix be separated by commas.
Question 2- What would you change if you wanted the matrix elements to be separated by a space instead of a comma?
Please show code with comments so I can follow what you are doing.