i have an excel sheet with 25 rows and 25 column values.... is it possible to save that 25 rows and 25 columns into a matfile.... if yes how to do.... please do reply.....

 채택된 답변

ChristianW
ChristianW 2013년 3월 4일

1 개 추천

Reading excel sheet:
doc xlsread
Saving into matfile
doc save

댓글 수: 4

Elysi Cochin
Elysi Cochin 2013년 3월 4일
where do include this.... in m-file?? what is doc "is it the name of the excel sheet....
ChristianW
ChristianW 2013년 3월 4일
편집: ChristianW 2013년 3월 4일
Type 'doc xlsread' in the Command Window to open the matlab help/documentation for the function xlsread.
The code in your m-file might be something like this:
num = xlsread('MyExcelFileName.xls')
save MyMatFileName.mat num
Elysi Cochin
Elysi Cochin 2013년 3월 20일
thank u....
empat = xlsread('4.csv')
save empat.mat empat
xlsread also useful for .csv file

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

질문:

2013년 3월 4일

댓글:

2017년 10월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by