User`s guide

Convert 1-D to 2-D
5-93
5Convert 1-D to 2-D
Purpose Reshape a 1-D or 2-D input to a 2-D matrix with the specified dimensions.
Library Signal Management / Signal Attributes
Description The Convert 1-D to 2-D block reshapes a length-M
i
1-D vector or an M
i
-by-N
i
matrix to an M
o
-by-N
o
matrix, where M
o
is specified by the Number of output
rows
parameter, and N
o
is specified by the Number of output columns
parameter.
y = reshape(u,Mo,No) % Equivalent MATLAB code
The input is reshaped columnwise, as shown in the two cases below. The
length-6 vector and the 2-by-3 matrix are both reshaped to the same 3-by-2
output matrix.
An error is generated if (M
o
N
o
)≠(M
i
N
i
). That is, the total number of input
elements must be conserved in the output.
The output is frame-based if the
Frame-based output check box is selected;
otherwise, the output is sample-based.
Dialog Box
u
1
u
4
u
2
u
5
u
3
u
6
u
1
u
3
u
5
u
2
u
4
u
6
(u
1
u
2
u
3
u
4
u
5
u
6
)