how to call a column of data from excel into matlab

6 次查看(过去 30 天)
I need to take the mean median and mode from a column of data in excel
first i tried using fopen filename but i keep getting back -1
xlsread RealEstate.xls ??? Error using ==> xlsread at 214 XLSREAD unable to open file RealEstate.xls. File C:\Program Files\Dell\DellDock\RealEstate.xls not found.

采纳的回答

Srinivas
Srinivas 2012-5-8
yourdata = xlsread(your file name);
then you can process it
help mean
help xlsread
help importfile
  3 个评论
Srinivas
Srinivas 2012-5-9
is 'RealEstate.xls' in the same folder, if not include path
yourdata = xlsread(your file name with complete path)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile 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