I have multiple numerical matrices generated by a for loop. Each matrix has 4 columns and uncertain rows. How should I write these matrices to a single csv file?
I have tried dlmwrite('filename.csv', M,'-append'), but dlmwrite appends the new matrix at the end of the rows. The outputs that I expect are the new matrix should be written starting from a different column.