How can I change an xlsx file to a mat file?
Ältere Kommentare anzeigen
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?
Antworten (2)
Hank
am 1 Jun. 2020
Try using
A = readmatrix('spreadsheet.xlsx')
If you need to save it as a mat file
save('data.mat','A')
2 Kommentare
Yasmine Abdennadher
am 1 Jun. 2020
Hank
am 3 Jun. 2020
is the data numeric? Can you share and example of the data, or the file?
Son Pham
am 21 Jun. 2024
0 Stimmen
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)
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!