MATLAB: How to read xlsx file after importing the file from UGI

xlsread

The first step of the code was:
[file,path,filter] = uigetfile({'*.xlsx'},'Select the Excel file');
Im looking for the second step, and i tried these but they didnt work:
[num]= xlsread(file);
num = xlsread(file,'','','basic');
[num,txt,raw]= xlsread (file);
please can anybody help?

Best Answer

[file,filepath,filter] = uigetfile({'*.xlsx'},'Select the Excel file');
filename = fullfile(filepath, file);
[num] = xlsread(filename);