How do I find out the full path for a directory?

22 visualizzazioni (ultimi 30 giorni)
I have the name of a directory, but I would like to find out its full path. How can I do that?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 26 Feb 2018
You can use the "what" command.  Please refer to the documentation here: <http://www.mathworks.com/help/matlab/ref/what.html>
 
>> s = what('myDir');
>> s.path
ans =
C:\path\to\myDir

Più risposte (0)

Categorie

Scopri di più su Files and Folders in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Prodotti


Release

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by