Feeds
답변 있음
Extract only diagonal elements from matrix
For a one line solution you can use linear indices via sub2ind: v = mat(sub2ind(size(mat), 1:length(mat), 1:length(mat)); Howe...
Extract only diagonal elements from matrix
For a one line solution you can use linear indices via sub2ind: v = mat(sub2ind(size(mat), 1:length(mat), 1:length(mat)); Howe...
대략 2년 전 | 0
