AllExperts > Experts 
Search      

CAD

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More CAD Answers
Question Library

Ask a question about CAD
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About George Moustris
Expertise
I have extensive experience in MATLAB which is a CAD for engineers.I can answer many questions on the programming script as well as the use of many toolboxes Matlab uses.However DO NOT ask me about the underlying theory of your projects.I will only answer questions regarding the USE of Matlab.

Experience
I have written many scripts in Matlab utilizing many toolboxes and libraries such as Fuzzy Logic toolbox,Neural Nets,Image processing,Wavelets,Signal processing etc.

Organizations
Aristotle University of Thessaloniki

 
   

You are here:  Experts > Computing/Technology > Computer-Aided Design > CAD > import Excel data to Matlab

Topic: CAD



Expert: George Moustris
Date: 6/15/2008
Subject: import Excel data to Matlab

Question
"Hello Sir

I want to know how can I import one numerical Excel 2007 data sheet to Matlab 2007b.I have tried xlsread order in Matlab space but it warns:



A = xlsread('w5data.xls')

??? XLSREAD unable to open file w5data.xls.

Error using ==> iofunprivatevalidpath

File C:Program FilesMATLAB71workwell15data.xls not found.


Thank you."

Answer
Hi javad,

this error is a path error. The command you issue (xlsread('w5data.xls')) implies that the file  w5data.xls is in the current directory, which drom what i can tell is the default 'work' directory under the matlab root folder. Either provide a full path to the file you want to read e.g. A = xlsread('C:\path_to_file\w5data.xls') or just copy the file to the 'work' folder.

Best
G.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.