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.
A = zeros(10);
B = rand(5);
ij = [7,7];
I = insertImage(A, B, ij);
axis equal tight
Germán (2022). insertImage(Ib, Is, ij) (https://www.mathworks.com/matlabcentral/fileexchange/54176-insertimage-ib-is-ij), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!