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:
Setpath based upon selection in listbox

Subject: Setpath based upon selection in listbox

From: Maxx

Date: 30 Jun, 2010 14:02:04

Message: 1 of 2

Hello all,
    I have a gui with a listbox, which is generated from extracting data in the form of filenames from an Excel Sheet. When you make a selection the several functions are called that plot the data from images saved under the filename. Since the path will change with the selection, can I tell my function to go the folder of the selection on my network?

Something like...
setpath('C:\Program Files\blah\blah\'variable'\blah\blah')

The data is organized in folders with the same name and in the same order (alphabetically) as it appears in the Excel Sheet. This leads me to believe I can set the variable equal to the sting selected in the listbox handle. Any ideas would be greatly appreciated.
      Thanks
       Maxx

Subject: Setpath based upon selection in listbox

From: Maxx

Date: 30 Jun, 2010 15:36:04

Message: 2 of 2

    I figured it out. If anyone wanted to know how reply and I'll post it.
           Maxx

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