Main Content

slreportgen.utils.isDocBlock

Check if DocBlock

Description

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

example

Examples

collapse all

load_system("slrgex_fuelsys")
tf = slreportgen.utils.isDocBlock ...
   ("slrgex_fuelsys/To Controller/Sensor Info")
tf = logical
   1

In this case, the Sensor Info block in the slrgex_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).

Version History

Introduced in R2019a

See Also