q = [a c]; p = [b d]; idx=sub2ind(size(M),q,p); out=M(idx)
Selected multiple values from a matrix
最新推荐文章于 2023-05-18 05:19:20 发布
q = [a c]; p = [b d]; idx=sub2ind(size(M),q,p); out=M(idx)