How can I export .mat file to .xls file?

How can I export .mat file to .xls file? I am using xlswrite('filename.xls') but not working. I have 50x50 deta. Kindly help me.

3 Comments

First you have to load the data to MATLAB Workspace. Are you facing any error? Refer this resource - Write Data to Excel Spreadsheets.
You have to pass the matrix as input to 'xlswrite' function. For example - xlswrite(filename,matrix_name).

Sign in to comment.

Answers (1)

Cris LaPierre
Cris LaPierre on 5 Aug 2024
Edited: Cris LaPierre on 5 Aug 2024
I'd recommend using writematrix (homogenous data) or writetable (for table data type) after first loading the mat file variable to the MATLAB workspace (see load).

1 Comment

@Cris LaPierre@Sunipa Som has R2015a. The writematrix function was introduced in R2019a.

Sign in to comment.

Products

Release

R2015a

Asked:

on 5 Aug 2024

Commented:

on 6 Aug 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!