Transfer graphics handle between methods in Level-2 MATLAB S-Function
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Joerg Buchholz
am 22 Nov. 2016
Beantwortet: Joerg Buchholz
am 5 Jan. 2017
In the Start method of a Level-2 MATLAB S-Function I create a graphics object e.g. a surf. In the Update method I want to manipulate the object e.g. add an offset to its ZData. How can the Update method access the object created in the Start method? I tried to (mis)use the Dwork vector to transfer the graphics handle of the surf from Start to Update, but obviously Dwork does not accept graphics handles any more (since they became objects in 2011).
I know that I can use global variables (bad style) or findobj (slow) in the Update method to access the surf. Is there a better way?
1 Kommentar
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!