Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

save excel data to matfile.....

Asked by Elysi Cochin on 4 Mar 2013

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

0 Comments

Elysi Cochin

Products

No products are associated with this question.

1 Answer

Answer by ChristianW on 4 Mar 2013
Accepted answer

Reading excel sheet:

doc xlsread

Saving into matfile

doc save

3 Comments

Elysi Cochin on 4 Mar 2013

where do include this.... in m-file?? what is doc "is it the name of the excel sheet....

ChristianW on 4 Mar 2013

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 on 20 Mar 2013

thank u....

ChristianW

Contact us