Got Questions? Get Answers.
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:
relative path with uigetfile

Subject: relative path with uigetfile

From: David Zhang

Date: 23 Dec, 2010 21:28:05

Message: 1 of 2

Is there a way to get a relative path from uigetfile?

Subject: relative path with uigetfile

From: Walter Roberson

Date: 23 Dec, 2010 22:13:48

Message: 2 of 2

On 10-12-23 03:28 PM, David Zhang wrote:
> Is there a way to get a relative path from uigetfile?

No, Mathworks did not provide an option for that.

You could write your own routine to convert absolute paths to relative paths,
but keep in mind that on MS Windows, there is no relative path representation
to reach something on a different drive (at least not that I know of.)

There might perhaps already be a Matlab File Exchange (FEX) routine to convert
absolute paths to relative paths.

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