How can I change an xlsx file to a mat file?
27 次查看(过去 30 天)
显示 更早的评论
I have a long column in a form of a .xlsx file and I am trying to convert to a .mat file in order to make a signal. what is the best way to go about this?
0 个评论
回答(2 个)
Hank
2020-6-1
Try using
A = readmatrix('spreadsheet.xlsx')
If you need to save it as a mat file
save('data.mat','A')
2 个评论
Son
2024-6-21
I think using Import tool is the quickest way.
You can check it here: Import Spreadsheets - MATLAB & Simulink (mathworks.com)
readmatrix as Hank mention is also useful Read matrix from file - MATLAB readmatrix (mathworks.com)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!