필터 지우기
필터 지우기

Converting a .mat file to .xls

조회 수: 2 (최근 30일)
John
John 2012년 2월 24일
Hi there,
Is there anyway to convert a .mat file to an excel file in matlab?
Thank you

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2012년 2월 24일
You need to write MATLAB code to do this. First load the contents of the MAT-file into the workspace using the load command. You can then get the names of the variables in the workspace by using something like:
varNames = who;
Be careful to not get variables that you may have created before the MAT-file was loaded.
You can then loop through the cell-array and write each variable to an Excel file using xlswrite.

Sean de Wolski
Sean de Wolski 2012년 2월 24일
doc importdata
doc xlswrite
Some friends for your journey...

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by