Passing data from a notifing function to a listening function

1 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by