📜  matlab 矩阵索引 - Matlab 代码示例

📅  最后修改于: 2022-03-11 15:01:04.194000             🧑  作者: Mango

代码示例1
A = [16 5 9; 4 2 11; 7 14 9]; % Create matrix

A(2,3)   % Extract the element in row 2, column 3
ans = 11

A(1:2,2:3) % Extract elements in rows 1 and 2, and columns 2 and 3
ans =     5    9
        2    11