Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using LinearAlgebra;
- d=11
- #PREKO GLAVNE
- A = triu(ones(d,d)*3,+1)+tril(ones(d,d)*6,-1)+Diagonal(ones(d,d)*4)
- #PREKO SPOREDNE DIJAGONALE
- B = triu(ones(d,d)*3,+1)+tril(ones(d,d)*6,-1)+Diagonal(ones(d,d)*4)
- #isto kao A samo rotiras
- reverse(B, dims=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement