Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
xlsread in Matlab Stand alone executable

Subject: xlsread in Matlab Stand alone executable

From: Alaa Elwany

Date: 9 Jan, 2012 14:25:09

Message: 1 of 1


I have created a stand alone executable from my M File using the Deploytool.
The M file uses xlsread to import data from Excel

a = xlsread('Myfile.xlsx')

My question is:

If I have the xlsread command as above WITHOUT the file path, does Matlab search for the Excel file in the same directory in which the executable is located?

In other words:
If I run the original M File, Matlab will search for the Excel file within Matlab's working directory. What about if I run the executable generated from that M File? What is the default directory that it will look for the Excel file within?


Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us