Main Content

getAllBlockWithStorages

Class: simevents.SimulationObserver
Namespace: simevents

Get list of blocks that store entities

Syntax

getAllBlockWithStorages(obj)

Description

getAllBlockWithStorages(obj) is a utility function that returns the paths of all blocks that store entities.

Input Arguments

expand all

Object of class SimulationObserver

Output Arguments

expand all

Cell array of all blocks that store entities, provided as full block paths.

Examples

expand all

Return the paths of all blocks that store entities.

function blks=getBlocksToNotify(obj)
   blks=getAllBlockWithStorages(obj);
end

Version History

Introduced in R2016a