Replace blocks by their contents
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
unblock(b) replaces all blocks that appear
as subexpressions in
b by their contents.
unblock(b) replaces all blocks in
the result of evaluating their content. Thus,
in most cases be equivalent to
a. The behavior
unblock may be controlled by additional arguments.
If a second argument
blockdomain is given, only
blocks belonging to a domain that inherits from
replaced by their content. If
FALSE is provided as a third argument,
b is replaced by its content if it is a block
of suitable type itself.
all transparent blocks in
b by their content, without
evaluating that content. Thus,
In case of nested blocks, only the outermost block is removed
A block is a sort of container that protects its content against evaluation:
y := 1: bl:= block(1 + y)
Blocks are atomic; thus
not visible as operands:
The content of a block may be extracted and evaluated using
In most cases, the object