logo

How to Save Data Calculated in MATLAB to an Excel File 📂Programing

How to Save Data Calculated in MATLAB to an Excel File

Method

When you want to organize the data calculated in MATLAB into Excel and the amount of data is not too much, you can manually copy and paste. However, for a matrix of data like 128*128 shown in the picture above, that method is not feasible. In this case, you can use xlswrite to save the data into an Excel file.

Compared to the picture above, xlswrite('test', Y) has been added at the last line. The data Y is created as an Excel file named test.

The Excel file has been created in the specified folder. When opened, the 128*128 matrix values are automatically organized.

See Also