Direct link to this answer ... p = [1 2;3 1];. c = [3 1];. [q, idx] = ismember(c, p, 'rows');. The 'idx' variable contains the row of 'p' that matches the data in ...
確定! 回上一頁