Passing data from a notifing function to a listening function

1 Ansicht (letzte 30 Tage)
Collin
Collin am 21 Apr. 2016
What are the trade-offs for...
1. Using a custom event.EventData class to pass data from the notifying function to the listening function
2. Using the source argument returned in the listening function to access the data directly
Specifically, a model/state class generates a large data set in a while loop. At the end of each loop, an update event notifies a plotting class of the desire to plot the data. Which data exchange mechanism would have the lest effect of the performance of the while loop.
Thank you

Antworten (0)

Kategorien

Mehr zu Software Development Tools finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by