save excel data to matfile.....

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.....

 采纳的回答

Reading excel sheet:
doc xlsread
Saving into matfile
doc save

4 个评论

where do include this.... in m-file?? what is doc "is it the name of the excel sheet....
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
empat = xlsread('4.csv')
save empat.mat empat
xlsread also useful for .csv file

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心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!

Translated by