coder.resize
Resize coder.Type object
Syntax
Description
returns a modified copy of t_out = coder.resize(t,sz,variable_dims)coder.Type
t with (upper-bound) size sz and variable dimensions
variable_dims. If variable_dims or sz
are scalars, the function applies the scalars to all
dimensions of t. By default, variable_dims does not apply
to dimensions where sz is 0 or 1, which
are fixed. To override this default and allow dimensions of size 0 and
1 to vary, set the uniform argument to
true. The coder.resize function ignores
variable_dims for dimensions with size inf, as these
dimensions are variable size by definition. If t is a cell array of types,
coder.resize resizes all elements of
the cell array.
allows the dimensions of t_out = coder.resize(t,[],variable_dims) t specified by variable_dims to
vary without changing the size of t.
specifies resizing options using one or more name-value arguments in addition to the input
arguments in previous syntaxes. For example, to recursively resize t_out = coder.resize(___,Name=Value)t and
all types within t, set
recursive to true.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Limitations
For sparse matrices,
coder.resizedrops the upper bounds for variable-size dimensions.
Version History
Introduced in R2011a