How to load excel file..?

4 次查看(过去 30 天)
IITH
IITH 2014-7-8
评论: IITH 2014-7-9
Hi, i was trying load some data from excel but it is showing error like "Undefined function or method 'Input' for input arguments of type 'char'...
this is wt i wrote xx = xlsread('C:\Users\Nagaraj Jade\Desktop\Book1.xlsx','Sheet1');
but it working in other system, so i need to install anything extra or what to do..?
  2 个评论
C.J. Harris
C.J. Harris 2014-7-8
Are you sure the error is not: Undefined function or method 'xlsread' for input arguments of type 'char'.? As that would indicate a problem with your path.
IITH
IITH 2014-7-9
actually my working directory and excel files are in the same folder...but still it is giving error please tell me what to do

请先登录,再进行评论。

采纳的回答

Vijay Nahar
Vijay Nahar 2014-7-8
Try concatanating the string within xlsread, using square brackets:
xx = xlsread(['C:\Users\Nagaraj Jade\Desktop\Book1.xlsx','Sheet1']);

更多回答(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