You may use readcell function to read the excel sheet in the form of a cell array and assign the desired value from cell array to opts.VariableNames variable by proper indexing.
Refer the following link for readcell function documentation
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!