Simulink.BlockDiagram.resizeBlocksToFitContent
Syntax
Description
resizes blocks of these types in the model, library, or subsystem named
resizedBlocks = Simulink.BlockDiagram.resizeBlocksToFitContent(sys)sys to be large enough to fit the parameter value they display on their
block icons:
When the blocks are too small to display the parameter value, the blocks display a
placeholder letter instead, for example, -K-.
The function outputs the paths of the resized blocks as a cell array of character
vectors. The Simulink.BlockDiagram.resizeBlocksToFitContent function
does not act on blocks in model references.
outputs the paths of all blocks of the listed block types in resizedBlocks = Simulink.BlockDiagram.resizeBlocksToFitContent(sys,ReportOnly="true")sys that
display placeholder letters. The function outputs the block paths as a cell array of
character vectors. This syntax does not resize any blocks.
resizes all blocks in the block set specified by resizedBlocks = Simulink.BlockDiagram.resizeBlocksToFitContent(sys,BlockList=blocksToResize)blocksToResize that are
of the listed block types and display a placeholder letter. The function outputs the paths
of the resized blocks as a cell array of character vectors.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2024b
