Can someone explain this example of deleting elements from a matrix in MATLAB?

前端 未结 2 711
攒了一身酷
攒了一身酷 2020-12-18 16:16

The following example appears in the MATLAB tutorial:

X = [16  2 13;
     5  11  8;
     9   7 12;
     4  14  1]

Using a single subscript

2条回答
  •  我在风中等你
    2020-12-18 16:54

    It's very simple.

    It basically starts from the second element in this example and goes upto tenth element (column wise) in steps of 2 and deletes corresponding elements. The remaining elements result in a row vector.

提交回复
热议问题