Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A =
- 1 5 3
- 4 2 6
- 7 9 8
- >> B = diag(A)
- B =
- 1
- 2
- 8
- >> B = B'
- B =
- 1 2 8
- >> max(B(:, 2:2:end))
- ans =
- 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement