save a matrix to excel

hello,I have matrix of numbers. size of the matrix is 360*200. I want to know how I can save this matrix in an excel file.thanks

1 Comment

latest command is writematrix
writematrix(matix-to-be-saved,'path-to-file.xlsx')

Sign in to comment.

Answers (1)

xlswrite('filename.xlsx',yourmatrix)

5 Comments

thank you. when I use xlswrite('filename.xlsx',yourmatrix);this error happens:Struct contents reference from a non-struct array object.
Azzi Abdelmalek
Azzi Abdelmalek on 15 Aug 2016
Edited: Azzi Abdelmalek on 15 Aug 2016
Then, you have to tell us what kind of matrix you are using, and post your code
Thanks Azzi.
Thanks Azzi, really helpful !
thanks

Sign in to comment.

Asked:

on 15 Aug 2016

Commented:

on 12 Feb 2024

Community Treasure Hunt

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

Start Hunting!