App Designer, expanding tree using a struct, plotting selected data, edit selected
Mostrar comentarios más antiguos
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.
Respuestas (3)
Markus Knoch
el 5 de Abr. de 2019
1 comentario
Jose
el 31 de Ag. de 2022
Thank you for posting a solution, this was very helpful!
Markus Knoch
el 5 de Abr. de 2019
apple
el 5 de Jul. de 2019
0 votos
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
Categorías
Más información sobre HDF5 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!