How can a function know in which block it is executed?
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
I have a wireless sensor network simulator in Matlab. Simulator has n sensor nodes with names from 'Sensor node1' to ['Sensor node' n].
Each sensor node contains an Attribute function block, which contains a fcn function.
How can this function know in which sensor it is run? In other words: How can function get 'Sensor node1' when run in 1st sensor node and get 'Sensor node9' when run in 9th sensor node? Thanks a lot.
回答(0 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!