MATLAB: XlsColNum2str error

MATLAB and Simulink Student Suitexlscolnum2str

When I try to run my scirpt I get an erorr saying xlsColNum2str is unrecognized but there are not spelling errors and this is a build in function. Any suggetions to the problem??
Others have ran the same exact code with no issue
%% read digital serial port and mA data
e = actxserver ('Excel.Application');
filename = fullfile(pwd,fname{data_select});
ewb = e.Workbooks.Open(filename);
esh = ewb.ActiveSheet; %#ok<*NASGU>
sheetObj = e.Worksheets.get('Item', wsname{data_select});
num_cols = sheetObj.UsedRange.Columns.Count;
endcolChar = xlsColNum2Str(num_cols);

Best Answer

It is not a built-in function. Download it from here and place it on MATLAB's path: https://www.mathworks.com/matlabcentral/fileexchange/15748-excel-column-number-to-column-name