Working with Struct variable type in AppDesign.

조회 수: 8 (최근 30일)
Atrin Tabibi
Atrin Tabibi 2020년 12월 7일
댓글: Mario Malic 2020년 12월 9일
I have a struct type of file which consist of 61 other struct files. In each of these 61 files there are multiple .mat data files with differnet type of variables(most of them are doubles). I want to design an app to brows in each these 61 file and extract the data I am looking for. any hint where to start?
  댓글 수: 5
Atrin Tabibi
Atrin Tabibi 2020년 12월 8일
main folder is already built.
Mario Malic
Mario Malic 2020년 12월 9일
Of course it is, I am not code this for you even though it's somewhat simple task, because if you need help with anything else afterwards, you'll have to ask again. So, as mentioned above, first part is the dir and load, to get the files and second one is playing with uitable to see the loaded data for each file.
Start with this to get the list of your mat files
S = dir('*.mat') % if files are in one folder
You can use the list to construct entries in your Tree component, then create a callback that would load file from selected node.
Lastly, display the loaded data in uitable

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by