How to convert .mat to .xls
Show older comments
Please help me out in a detail manner xlswrite command is not working
8 Comments
Jürgen
on 31 Aug 2012
please show the code that you already tried?
PRABHU SRINIVASAN
on 1 Mar 2017
Hi I tried to convert my .mat data to .xls but unable to do it. The .mat file data struct contains huge amount of data i.e the 107968x1 for all the variables. I want to convert it to a .xls can anyone give idea in this regard.
Walter Roberson
on 1 Mar 2017
Xls files are limited to 65535 rows. If you managed to create a file that big then Excel itself would be unable to read it.
You will need to use xlsx
PRABHU SRINIVASAN
on 2 Mar 2017
Can i export my .mat file data to xlsx? Is there any procedure for doing with matlab code? Please advise...
Walter Roberson
on 2 Mar 2017
xlswrite() can write .xlsx files.
If your data is in the form of a table() or timetable() object, then writetable() can write it to .xlsx
Christine Zarief
on 10 Mar 2018
Edited: Walter Roberson
on 28 Mar 2018
I have an error for converting .mat files into .xlsx files ,I used this code
load('train_subject01.mat')
xlswrite('kokytest.xlsx', train_subject01)
and matlab gives me this error message
Undefined function or variable 'train_subject01'.
so please could anyone help me to solve it ?
Thanks in advance
Walter Roberson
on 28 Mar 2018
Your .mat file train_subject01.mat did not contain a variable named train_subject01 . You should use
whos -file train_subject01.mat
to see the names of the variables in the file.
Zhibo
on 2 Aug 2022
我做了一个matToExcel工具可以在线处理这个问题
Accepted Answer
More Answers (1)
kinju Prajapati
on 11 Jan 2019
0 votes
how to load my own datset for training and testing....
nprtool only respond inbuilt or example dataset..not my dataset,,,,
4 Comments
Walter Roberson
on 3 Jan 2020
How are your datasets represented? nprtool permits you to indicate which variable to use, or if you use the '...' button to the right of that, you can select a text file or .mat file to read data from.
arun anoop m
on 27 Jul 2020
This code working fine(mat to xls).
Walter Roberson
on 6 Apr 2023
I am not clear whether you are referring to a Simulink Data Dictionary https://www.mathworks.com/help/simulink/slref/simulink.data.dictionary.html or if you are referring to the releative new dictionary mapping object?
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!