MATLAB: Reading excel file in MATLAB (GUI)

excelgui

Hi, I want to read two values in an excel sheet and sum these values by pressing (Push_button) but I am getting an (??? XLSREAD unable to open file Data_sheet.xls.) and stating that the file is not found. my code is :
a=xlsread(G:\Master\Program\Calculator\Data_sheet.xls,'B5′);
b=xlsread(G:\Master\Program\Calculator\Data_sheet.xls,'B6′);
c=a+b;
set(handles.text1,'string',c);
why I am having this error? and how can I come over it ? please help ?

Best Answer

a=xlsread(G:\Master\Program\Calculator\Data_sheet.xls,'Sheet1','B5′);
b=xlsread(G:\Master\Program\Calculator\Data_sheet.xls,'Sheet1','B6′);
c=a+b;
set(handles.text1,'string',c);