Is there any way of exporting data as a .mat file?
I am trying to export the electric field data of a sytem into matlab. So far, I have been exporting as a spreadsheet, and it organizes the data in columns x, y, E. This is inconvenient as the x and y vectors are unordered and it makes indexing very tricky. I simply want to organize E as a 2D matrix so I can know E for all space and integrate over certain regions. I am told an easier way is to export the data as a .mat file, which allows one to call the variable E while knowing its position in space, but I can't figure out how to do that.
I am trying to export the electric field data of a sytem into matlab. So far, I have been exporting as a spreadsheet, and it organizes the data in columns x, y, E. This is inconvenient as the x and y vectors are unordered and it makes indexing very tricky. I simply want to organize E as a 2D matrix so I can know E for all space and integrate over certain regions. I am told an easier way is to export the data as a .mat file, which allows one to call the variable E while knowing its position in space, but I can't figure out how to do that.