slreportgen.utils.isDocBlock

Check if DocBlock

Description

example

tf = slreportgen.utils.isDocBlock(obj) tests if the input obj is a Simulink® DocBlock block.

Examples

Test If Object Is a DocBlock

load_system('sldemo_fuelsys')
tf = slreportgen.utils.isDocBlock ...
   ('sldemo_fuelsys/To Controller/Sensor Info')
tf =

  logical

   1

In this case, the Sensor Info block in the sldemo_fuelsys model is a DocBlock.

Input Arguments

collapse all

Object to test for being a DocBlock, specified as a string or character array of the block path or handle.

Output Arguments

collapse all

Whether input is a DocBlock, returned as 1 (true) if the input is a DocBlock. Otherwise, it returns 0 (false).

See Also

Introduced in R2019a