getfvb(A,M,N,mode)

Versión 1.0 (1,7 KB) por Said BOUREZG
Getting the first values of any M*N blocks size in Matrix
18 descargas
Actualizado 19 abr 2017

Ver licencia

GETFVB Get the first values of blocks of a matrix.
B = GETFVB(A,M,N) for a matrix A returns a matrix containing first values
of blocks with size [M N] of a matrix given A.

B = GETFVB(A,M,N,'vect') for a matrix A returns an arry containing first values
of blocks with size [M N] of a matrix given A.
If someone want to improuve or adding some changes, only let me know
about that

Examples:
A=[ 1 2 3 4
5 6 7 8
9 1 1 2
2 4 5 6 ]

B = getfvb(A,2,2)
% returns
B=[ 1 3
9 1 ]
B = getfvb(A,2,2,'vect')
% returns
B=[ 1 9 3 1]


A=[ 1 2 3 4
5 6 7 8
9 1 1 2
2 4 5 6 ]

B = getfvb(A,1,2)
% returns
B=[ 1 3
5 7
9 1
2 5 ]
B = getfvb(A,1,2,'vect')
% returns
B=[ 1 5 9 2 3 7 1 5]

Citar como

Said BOUREZG (2024). getfvb(A,M,N,mode) (https://www.mathworks.com/matlabcentral/fileexchange/62630-getfvb-a-m-n-mode), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2010a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0