How to export data?

So I have calulated a bunch of matrices with data, and I want to graph them/perform analysis. How do I export it into a data file?


well it’s pretty vague… you can view matrix data

cout << yourMatrix <<endl;

in standard output. so you can redirect to an ofstream file…

ofstream file? i am already using cout