q = [a c]; p = [b d]; idx=sub2ind(size(M),q,p); out=M(idx)
Selected multiple values from a matrix
最新推荐文章于 2023-12-22 02:23:09 发布
q = [a c]; p = [b d]; idx=sub2ind(size(M),q,p); out=M(idx)