SHARE
TWEET

Untitled

a guest Jun 25th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. A = imread('coins.png');
  2.  
  3. [s1, s2] = size(A);
  4. B = zeros(s1*2, s2*2, class(A));
  5. B(1:s1,1:s2) = A;
  6.      
  7. C = padarray(A, [s1 s2], 0, 'post');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top