MATLAB Answers


Error Message xlsread (R2009b)

on 29 Dec 2012

I've already saved the folder containg my file, but i got this error message..

>> u=xlsread('C:\Users\xxx\Desktop\Data_ implementazione\DATA_291212','Bid - Ask Prices 2002_D','B10:GS2712');%the matrix of numbers

??? Error using ==> xlsread at 219 XLSREAD unable to open file C:\Users\xxx\Desktop\Data_ implementazione\DATA_291212. File C:\Users\xxx\Desktop\Data_ implementazione\DATA_291212.xls not found.

I have also tried this:

>> [type, sheets] = xlsfinfo('DATA_291212.xls') ??? Error using ==> validpath at 42 File C:\Users\xxx\Desktop\Data_ implementazione\DATA_291212.xls not found.

Error in ==> xlsfinfo at 40 filename = validpath(filename,'.xls');

Could you please help me figure it out?

Many thanks




No products are associated with this question.

2 Answers

Answer by Image Analyst
on 29 Dec 2012

That file does not exist, at least not in the folder you specified. That's what "not found" means. You must have misspelled either the folder or the filename, or it's in a different folder, like on your desktop itself, rather than the Desktop\Data_ implementazione subfolder.


Answer by Gadi
on 31 Dec 2012

Is it possible that the file is an ".xlsx" extension?


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!