daily pastebin goal


a guest Feb 23rd, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = input('Unesite borj vrsta matrice:');
  2. m = input('Unesi broj kolona matrice');
  3. A = [];
  4. for i=1:n
  5.     for j=1:m
  6.         if i==1
  7.             A(i,j)=j
  8.         elseif j==1
  9.             A(i,j)=i
  10.         else
  11.             A(i,j)= A(i-1,j)+A(i,j-1)
  12.         end
  13.     end
  14. end
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