I am trying to save a matrix (8760 x 1) to a text file. This is my code:
However, the generated text file has no space between the elements. Therefore, I get something like this:
Any ideas? Also, how can I insert a string variable into the filename of the .txt file? e.g. totalenergy_'X'.txt where X is a variable.