Advertisement
stev4

Untitled

Nov 8th, 2019
1,813
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 0.25 KB | None | 0 0
  1. using LinearAlgebra;
  2. d=11
  3.  
  4. #PREKO GLAVNE
  5. A = triu(ones(d,d)*3,+1)+tril(ones(d,d)*6,-1)+Diagonal(ones(d,d)*4)
  6.  
  7.  
  8. #PREKO SPOREDNE DIJAGONALE
  9. B = triu(ones(d,d)*3,+1)+tril(ones(d,d)*6,-1)+Diagonal(ones(d,d)*4)
  10. #isto kao A samo rotiras
  11. reverse(B, dims=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement