Feeds
已回答
Put a small matrix in a bigger one.
function A = MatrixReplace(A,B) [p,q] = size(B); A(end-p+1:end, end-q+1:end) = B; end
Put a small matrix in a bigger one.
function A = MatrixReplace(A,B) [p,q] = size(B); A(end-p+1:end, end-q+1:end) = B; end
9 years 前 | 3
| 已接受