MATLAB è Simulink íà ðóññêîì

https://hub.exponenta.ru/
\Communications Toolbox

CommunicationsToolbox:

  \ \

VEC2MAT

:

mat = vec2mat(vec,matcol);
mat = vec2mat(vec,matcol,padding);
[mat,padded] = vec2mat(...);

:

mat = vec2mat(vec,matcol)

vec , matcol , . matcol, mat . mat ceil(length(vec)/matcol).

mat = vec2mat(vec,matcol,padding)

, , , mat, padding. padding , , .

[mat,padded] = vec2mat(...)

padded, , mat.

. vec2mat MATLAB reshape. reshape , . , reshape , , vec2mat .

.

vec = [1 2 3 4 5];

[mat,padded] = vec2mat(vec,3)

mat =

     1     2     3

     4     5     0

 

padded =

     1

[mat2,padded2] = vec2mat(vec,4)

mat2 =

     1     2     3     4

     5     0     0     0

 

padded2 =

     3

mat3 = vec2mat(vec,4,[10 9 8; 7 6 5; 4 3 2])

mat3 =

     1     2     3     4

     5     10     7     4

: reshape

   \ \


:


 Orphus