App Designer, expanding tree using a struct, plotting selected data, edit selected
Show older comments
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.
Answers (3)
Markus Knoch
on 5 Apr 2019
1 Comment
Jose
on 31 Aug 2022
Thank you for posting a solution, this was very helpful!
Markus Knoch
on 5 Apr 2019
apple
on 5 Jul 2019
0 votes
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
Categories
Find more on HDF5 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!