I have a file "temp.xlsx" that I am trying to import into MATLAB and save as a table. When I use the "Import Data" tool, I notice that the table is named according to the file name as "temp".
However, I want to automate this process, so I am generating the function code form the import data tool. when I call this function from the command line, the table is named as "ans" and not according to the file name as "temp" the way it was before.
Why is this? How can I automate this process and still get my variable to be named according to the file name?
Best Answer