Passing data fra one Appdesigner GUI to another
1 view (last 30 days)
Show older comments
I tried reading some of the documentation about this, but I couldn't get it to work. I have attached pictures of two GUI's made in Appdesigner.
The one called rfdgui.mlapp lets you browse for a .csv-file, and shows you which file you have chosen in the text field below. When you click "Analysér" (Analyze),
the chosen .csv-file is read and a number of variables are calculated on the data within it - this works. However, I want to pass some of these variables to the other GUI (results.mlapp), so they are shown in their corresponding component. I've played a little with creating some global properties, but nothing succesful.
2 Comments
Adam
on 14 Nov 2018
https://uk.mathworks.com/help/matlab/creating_guis/app-designer-startup-function.html should help with this. Just pass the arguments you want into the 2nd GUI via the startup function if you are creating the 2nd GUI at the point when you want to pass them in.
If you just want to pass them to a pre-existing 2nd GUI then you just need to have stored your class objsect for that 2nd GUI and add whatever public properties or functions you want to it that you can call/set from the 1st GUI.
Answers (0)
See Also
Categories
Find more on Develop Apps Using App Designer 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!