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 个评论

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

请先登录,再进行评论。

回答(1 个)

xlswrite('filename.xlsx',yourmatrix)

5 个评论

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

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by