Create a transparent block protected against evaluation
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.
blockTransparent(a) creates a transparent
block, which is left unchanged by evaluation, but treated as expression
with the same operands as
blockTransparent is a domain.
d is any block domain,
a block belonging to that domain, with content
blockTransparent(a) puts its argument into
a block, without evaluating it. In order to evaluate
before putting it into a block of some kind, use
Transparent blocks are invariant under evaluation, but such blocks have the same operands as their content.
all transparent blocks in
b by their content, without
evaluating that content. Thus,
A block, including transparent blocks, is a sort of container that protects its content against evaluation:
y := 2: bl := blockTransparent(x + y + z)
Transparent block allow access to the operands of its content:
op(bl,1), subs(bl, hold(y) = y)
delete bl, y
A block can also contain a sequence; flattening is suppressed:
The content of a block can be extracted and evaluated using
bl := blockTransparent(x + y): [x, y] := [1, 2]: bl
Any object or sequence of objects
blockTransparent creates objects of its own