MATLAB: Write Data to .txt or .csv file

csvcsvwritedlmwriteoutputtxtwrite

I'm trying to write data that I have in a matrix to a .txt or .csv file. I have data in a 250×2 matrix, and would simply like to be able to write this out to a file of my choice, say 'data.txt' or something like that. Is there an easy way to do this?

Best Answer

  • dlmwrite: write matrix to ASCII-delimited file
  • csvwrite: write comma-separated value file
Related Question