MATLAB: Strange problem with readtable

MATLAB

Hi, I wrote a small Matlan 2018a application and it runs smoothly. But after I compiled it into an executable and started to run, it keeps giving me an error about readtable. If I supply it with a param which is a file name, say, Test.xlsx, the readtable, it issues an error: .xlsx is not recognized. What is the cause of this problem? I am quite puzzled. Thanks for any help!

Best Answer

Just discovered that when I run the executable, and supply the file name, I cannot add a ";" at the end of the command.