📜  matlab 选择矩阵的元素 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:55.550000             🧑  作者: Mango

代码示例1
And I want to select a certain element from each row in the matrix for example: I want elements from row 1 column 3, row 2 column 4, row 4 column 3, row 5 column 3 and turn those element into 0. I know I can do something like:
x(1,3)=0;
x(2,4)=0;