How to load excel file..?

3 vues (au cours des 30 derniers jours)
IITH
IITH le 8 Juil 2014
Commenté : IITH le 9 Juil 2014
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 commentaires
C.J. Harris
C.J. Harris le 8 Juil 2014
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 le 9 Juil 2014
actually my working directory and excel files are in the same folder...but still it is giving error please tell me what to do

Connectez-vous pour commenter.

Réponse acceptée

Vijay Nahar
Vijay Nahar le 8 Juil 2014
Try concatanating the string within xlsread, using square brackets:
xx = xlsread(['C:\Users\Nagaraj Jade\Desktop\Book1.xlsx','Sheet1']);
  1 commentaire
IITH
IITH le 9 Juil 2014
thanks...

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by