Advertisement
Lauda

Untitled

Nov 25th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.20 KB | None | 0 0
  1. A =
  2.  
  3.      1     5     3
  4.      4     2     6
  5.      7     9     8
  6.  
  7. >> B = diag(A)
  8.  
  9. B =
  10.  
  11.      1
  12.      2
  13.      8
  14.  
  15. >> B = B'
  16.  
  17. B =
  18.  
  19.      1     2     8
  20.  
  21. >> max(B(:, 2:2:end))
  22.  
  23. ans =
  24.  
  25.      2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement