Skip to main content
1 of 4
DavidC
  • 25.4k
  • 2
  • 52
  • 105

#Mathematica 10

m[[#, #2]] &

Usage

m = {{13, 10, 4, 0}, {3, 12, 7, 8}, {15, 1, 14, 6}, {9, 2, 11, 5}}
m[[#, #2]]&[2,3]

7

Explanation

m[[#, #2]]&[2,3] is a shortened form of Part[m,{2,3}], which gives the contents of the second row, third column.

DavidC
  • 25.4k
  • 2
  • 52
  • 105