主题:请问如何在matlab里提取某几行不相邻的子矩阵?
poponono
[专家分:0] 发布于 2007-07-30 18:24:00
请问如何在matlab里提取某几行不相邻的子矩阵?
回复列表 (共1个回复)
沙发
DingSun [专家分:730] 发布于 2007-08-02 00:15:00
a = b(RowIndex , ColIndex)
RowIndex , ColIndex 组合就是你想要的矩阵的行列
例如:
b = rand(10) ;
RowIndex = [ 1 5 2 9] ;
ColIndex [5 2 3 6] ;
那么a就是你想要的
我来回复