Simulink.BlockDiagram.resizeBlocksToFitContent
R2026bSyntax
Description
resizes blocks of these types in the specified model, library, or subsystem to be large
enough to fit the parameter value they display on their block icons:resizedBlocks = Simulink.BlockDiagram.resizeBlocksToFitContent(sys)
When the blocks are too small to display the parameter value, the blocks display a
placeholder letter instead, for example, -K-.
The Simulink.BlockDiagram.resizeBlocksToFitContent function does
not act on blocks in model references.
identifies the same blocks as the first syntax, but instead of resizing the blocks, this
syntax outputs the block paths, specified as a cell array of character vectors.resizedBlocks = Simulink.BlockDiagram.resizeBlocksToFitContent(sys,ReportOnly="true")
resizes all blocks in the specified list according to the same rules as the first syntax and
outputs their block paths, specified as a cell array of character vectors.resizedBlocks = Simulink.BlockDiagram.resizeBlocksToFitContent(sys,BlockList=blocksToResize)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2024b
