How to populate a tree with a struct with different depth?

조회 수: 2(최근 30일)
I want to import structured signal data from another software and let the user browse and select in a GUI. The imported data contains only the individual name of each signal like so:
As you see all levels are already separated by dots, but they're all strings and not actual struct.
So far I have successfully turned them into a proper struct, but now I don't know how to populate a tree object with it. The goal is to let the user expand and collapse nodes to find the signal they want in a GUI.
  댓글 수: 4
Shao-Yu Wang
Shao-Yu Wang 2022년 6월 2일
I have thought of that too, but struggled to create anything concrete. I myself am not familiar with this function either and I couldn't find any examples online with inconstant number of levels.

댓글을 달려면 로그인하십시오.

채택된 답변

Stephen23 2022년 6월 2일

추가 답변(0개)




Community Treasure Hunt

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

Start Hunting!

Translated by