getfvb(A,M,N,mode)

版本 1.0 (1.7 KB) 作者: Said BOUREZG
Getting the first values of any M*N blocks size in Matrix
18.0 次下载
更新时间 2017/4/19

查看许可证

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]

引用格式

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

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0