App Designer, expanding tree using a struct, plotting selected data, edit selected
이전 댓글 표시
Hello my name is markus, I´m an currently working as an intern with matlab. While writting my script I´ve stumpled upon the App Designer feature.
I think it has great potential and I would like to learn more about it. Sadly though, beeing a relatively new feature, the documentation, and tutorials are rare and most of them do not cover what I am interested in.
- I would like to acess data from a struct that I have created in my matlab script
- The struct should appear inside a tree, with all its subcells able to open on "childrens nobs"
- The selected data (from the struct), voltage, current and time data should then appear in a plot when they are selected in the tree and after hitting a button
- It would be nice to edit certain elements of the struct, which will be saved into the mat file (after hitting a button for example)
I´ve searched quite long for possible examples for such operations but I could not find any. I´m quite familiar with matlab code but the app designer style of obj based programming is very new to me. If anyone could help me solving some of those issues I would very much appreciate it.
I´m using 2018a.
답변 (3개)
Markus Knoch
2019년 4월 5일
댓글 수: 1
Jose
2022년 8월 31일
Thank you for posting a solution, this was very helpful!
Markus Knoch
2019년 4월 5일
apple
2019년 7월 5일
0 개 추천
Dear Markus Knoch,
I want to get the whole fields of one hdf5 data and set the data struct to app.Tree, I am not familiar with the nested struct data and the app.Tree . According to your methods, I tried but without success. Could you help me to clear this problem?
The data is from https://gamma.hdfgroup.org/ftp/pub/outgoing/NASAHDF/ATL06_20190223232535_08780212_001_01.h5
% Open the HDF5 File.
FN = 'ATL06_20190223232535_08780212_001_01.h5';
fid = H5F.open (FN, 'H5F_ACC_RDONLY', 'H5P_DEFAULT');
DataInfo = h5info(FN,'/'); % HDF5 data sturct
HDF5 data can be viewed by the following software:
https://www.giss.nasa.gov/tools/panoply/
Thank you very much!
HL
카테고리
도움말 센터 및 File Exchange에서 HDF5에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!