MATLAB: How to obtain a .csv file

csvMATLABmatrix

I have written and ran a code,I got the output as a matrix.Now to use the matrix in a software, I need to generate a .csv file of the matrix.What should be done?

Best Answer

Documentation for writematrix function, writematrix(A,filename) here A is the matrix and filename is the name of the .csv file you want to save it to.
This is another possible function, but it is not recommended by matlab.
Related Question