share data between 2 uifigure in app designer version 2017

1 Ansicht (letzte 30 Tage)
Fabienne Guerville
Fabienne Guerville am 28 Mai 2020
Bearbeitet: Adam Danz am 29 Mai 2020
I search an example in matlab to share data between 2 uifigure which are created in app designer (version 2017A). I don't find any example on the Mathwork site. If someone has an example of two GUI created in appdesigner 2017 and which share data between them.
Thanks in advance
Fabienne Guerville

Antworten (1)

Adam Danz
Adam Danz am 28 Mai 2020
Bearbeitet: Adam Danz am 28 Mai 2020
Here's the page you're looking for in Matlab's documentation.
The main idea is to access an app's handle from within the 2nd app. Here's a demo:
Note that AppDesigner features are still be rolled out. r2017a has a relatively early version of AppDesigner but these methods should still be good to go for that release.
  2 Kommentare
Fabienne Guerville
Fabienne Guerville am 28 Mai 2020
Bearbeitet: Adam Danz am 29 Mai 2020
I want an example (to see files .mlapp) to understand the logic to share data in appdesigner 2017. When I launch in matlab openExample('matlab/SharePlotDataPropertyExample') I have this error :
Error using openExample>resolveInput (line 107)
Example "SharePlotDataPropertyExample" not found in "C:\Program Files\MATLAB\R2017a\examples\matlab\examples.xml"
Error in openExample (line 11)
id = resolveInput(arg);
Thanks in advance
Fabienne Guerville
Adam Danz
Adam Danz am 28 Mai 2020
I added a 2nd link to my answer that shows a demo.
To execute the example in the first link, instead of loading the example in the command line, just copy-paste each block of code on that page line by line.
If you have any specific questions, please let us know.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Develop uifigure-Based Apps finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by