Form a tree view of path names?

1 回表示 (過去 30 日間)
Song
Song 2016 年 2 月 12 日
回答済み: Song 2016 年 2 月 13 日
Hello, basically, I need an algorithm which can convert a bunch of path names into kind of tree view, e.g.
C:\WINDOWS\addins
C:\WINDOWS\AppPatch
C:\WINDOWS\AppPatch\MUI
C:\WINDOWS\AppPatch\MUI\040C
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MUI
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MUI\0409
to
C:\WINDOWS
├───addins
├───AppPatch
│ └───MUI
│ └───040C
├───Microsoft.NET
│ └───Framework
│ └───v2.0.50727
│ └───MUI
│ └───0409
I found some links in java or python, e.g. https://stackoverflow.com/questions/1155977/populate-treeview-from-a-list-of-path
But they are using more or less their predefined classes.
How can I implement this in matlab?

回答 (2 件)

Chad Greene
Chad Greene 2016 年 2 月 12 日
Have you checked the file exchange site? There are a few options available, e.g. http://www.mathworks.com/matlabcentral/fileexchange/41170
  1 件のコメント
Song
Song 2016 年 2 月 13 日
How can i use these function to get my needed outputs?

サインインしてコメントする。


Song
Song 2016 年 2 月 13 日

カテゴリ

Help Center および File ExchangeWeb Services についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by