MATLAB Answers

Fateme Fotuhi

import data from excel-xlsread problem

Asked by Fateme Fotuhi
on 5 May 2013

Hi Guys,

Im at the begining of a code and want to import the data from excel. I used it before and didnt face a problem but at this time I get the following errors:

Error using xlsreadCOM>activate_sheet (line 84) Worksheet 'terminal' not found.

Error in xlsreadCOM (line 36) activate_sheet(Excel,sheet);

Error in xlsread (line 230) [numericData, textData, rawData, customOutput] = xlsreadCOM(file, sheet, range, Excel, customFun);

Error in new_competitive_model_variable_capacity (line 31) ld=xlsread(distance,'terminal'); %line haul distances

Im wondering if anybody could help me with that.


  1 Comment

Is your excel file Worksheet (default names: Sheet1,Sheet2,.. ) name 'terminal'? This line wants to read Worksheet with this name.



No products are associated with this question.

0 Answers

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!