My problem this time is about how to store a matrix in a .csv file to later do certain analyzes in excel.
I already know how to load files in the console and other things but I haven't been able to find how to store something in a file, in this case the matrix in .csv format
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cout<<MATRIZ_P[i][j]<<" ";
}cout<<endl;
}cout<<endl;
Generating a CSV file is nothing to write home about. You just have to separate the values of each row with a comma: