It can be used to put an array inside another array at an arbitrary location. It is sensitive to edges and correctly crops as needed.
Example:
A = zeros(10);
B = rand(5);
ij = [7,7];
I = insertImage(A, B, ij);
figure,
imagesc(I)
axis equal tight
Germán (2021). insertImage(Ib, Is, ij) (https://www.mathworks.com/matlabcentral/fileexchange/54176-insertimage-ib-is-ij), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.