Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using load function with GUI

Status
Not open for further replies.

wombat7

Mechanical
Feb 22, 2007
1
I have created a GUI that allows a user to input a file path, click an 'Import' button, and load the data into MATLAB for manipulation.

I am having a problem using the load function to import the file. When I call this function, I am getting a 'Attempt to add 'file' to a static workspace' error.

Is there a better way to import the data than with the load function or am I doing something wrong?

My load function looks like the following:

Code:
 load(path)

Where path is the user input for a file path.

Thanks in advance,

Chad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor