How can I change an xlsx file to a mat file?
이전 댓글 표시
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?
답변 (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
Yasmine Abdennadher
2020년 6월 1일
Hank
2020년 6월 3일
is the data numeric? Can you share and example of the data, or the file?
Son Pham
2024년 6월 21일
0 개 추천
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)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!