How to save output (Matrix) in excel files?

I am doing some operation on matrix and want to save my final matrix in excel file. what command shound i use.
Thank you!!

Answers (1)

Arif Hoq
Arif Hoq on 15 Mar 2022
Edited: Arif Hoq on 15 Mar 2022
M: your Matrix
X=your excel file name
writematrix(M,'X.xls')

4 Comments

you can use writetable function also
writetable(T,'myTable.txt')
Arif Hoq
Arif Hoq on 15 Mar 2022
Edited: Arif Hoq on 24 Mar 2022
did my answer solve your problem ?
its, not working. matrix suppose to b of size 10x8 and im getting more than this...its look like, values are not at where it suppose to be.
do you have any idea? why this is happening
can you please attach your data and code ?

Sign in to comment.

Categories

Products

Release

R2021b

Asked:

on 15 Mar 2022

Commented:

on 24 Mar 2022

Community Treasure Hunt

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

Start Hunting!