Matrix/Grid-Based Coding
Reasoning › Coding-Decoding · Topic 4.4
Matrix coding places letters in a grid whose rows and columns carry labels, and codes each letter by its row label and column label. The code of a letter is read as the row label followed by the column label (unless the question states the reverse order), and decoding means finding the cell where the given row and column meet. Always fix the order, row first or column first, before writing any code.
8 min read · Reasoning · Coding-Decoding
Quick Answer
Matrix coding places letters in a grid whose rows and columns carry labels, and codes each letter by its row label and column label. The code of a letter is read as the row label followed by the column label (unless the question states the reverse order), and decoding means finding the cell where the given row and column meet. Always fix the order, row first or column first, before writing any code.
At a Glance
- Code of a letter Row label then column label
- Reverse variant Column label then row label
- Decoding Find the cell where row and column meet
- Label types Digits or letters
- Key check Fix the order before coding
- Typical size 3 by 3 to 5 by 5 grid
Where Does It Fit?
This is the fourth topic of the Coding-Decoding macro. It replaces the arithmetic of Letter Coding (Direct, Shifted and Reverse Alphabet Coding) and Number Coding (Assigning Numeric Values to Letters/Words) with a lookup in a table, a skill that is also used in Coding by Analogy (Deriving the Coding Pattern from a Given Example) where the pattern has to be deduced from samples.
What Is Matrix Coding?
In short: in matrix coding every letter has an address, made of its row label and its column label, and that address is its code.
Take a grid of 20 letters, with the rows labelled 1 to 4 and the columns labelled 5 to 9.
| 5 | 6 | 7 | 8 | 9 | |
|---|---|---|---|---|---|
| 1 | A | B | C | D | E |
| 2 | F | G | H | I | J |
| 3 | K | L | M | N | O |
| 4 | P | Q | R | S | T |
The letter A is in row 1 and column 5, so its code is 15. The letter M is in row 3 and column 7, so it is 37. The letter T is 49. Since the row labels (1 to 4) and the column labels (5 to 9) never overlap, a code such as 37 can be read in only one way, which makes this grid easy to decode.
How Do You Code and Decode a Letter Grid?
In short: coding is a lookup from the letter to its row and column, and decoding is the lookup in the opposite direction.
Procedure
- Coding: find the letter in the grid, write its row label, then its column label.
- Decoding: split the code into row and column parts, go to that row and that column, and read the letter at the crossing.
- Reverse-order grids: if the question says column first, write the column label before the row label.
- Using the grid above: MEND is 37 19 38 18, and the code 47 15 49 decodes to R, A, T.
- Column-first version: in the same grid, written column first, the word DOT becomes 81 93 94 because D is in column 8, row 1, O in column 9, row 3 and T in column 9, row 4.
- Overlapping labels: if labels overlap, as when both rows and columns use the digits 0 to 4, a code like 23 may refer to two cells. The question will then say which label is read first, and this must be followed strictly.
Never memorise the grid. Instead, find the letter directly using the row and column each time.
How Do Letter Labels Work in Matrix Coding?
In short: when the labels are letters, each letter is coded by two letters, row label first and column label second.
Consider a grid with the row labels X, Y, Z and the column labels U, V, W.
| U | V | W | |
|---|---|---|---|
| X | A | B | C |
| Y | D | E | F |
| Z | G | H | I |
- Coding: B is in row X and column V, so B is XV. G is ZU. The word BAG is XV XU ZU.
- Decoding: YW is the letter in row Y and column W, which is F. ZV is H and XW is C. So YW ZV XW is FHC.
- Repeated letters: the word EGG is YV ZU ZU. A repeated letter always has a repeated code.
Matrix coding is the one coding type where the answer cannot be guessed from the options without the grid, so always complete the lookup. A related idea of a letter’s position in a pattern is covered in Alphabet-Based Analogy (Letter Position and Pattern Relationships).
Solved Examples
Example 1
Question: In the 4 by 5 grid above (rows 1 to 4, columns 5 to 9), how is the word MEND coded?
- M is in row 3, column 7, so M = 37.
- E is in row 1, column 9, so E = 19.
- N is in row 3, column 8, so N = 38, and D is in row 1, column 8, so D = 18.
Answer: MEND is coded as 37 19 38 18.
Example 2
Question: In the same grid, decode 47 15 49.
- 47 is row 4, column 7, which is R.
- 15 is row 1, column 5, which is A.
- 49 is row 4, column 9, which is T.
Answer: The word is RAT.
Example 3
Question: In the same grid, but with the column label written before the row label, how is DOT coded?
- D is in column 8 and row 1, so the code is 81.
- O is in column 9 and row 3, so the code is 93.
- T is in column 9 and row 4, so the code is 94.
Answer: DOT is coded as 81 93 94.
Example 4
Question: In the grid with row labels X, Y, Z and column labels U, V, W, how is BAG coded?
- B is in row X, column V, so B = XV.
- A is in row X, column U, so A = XU.
- G is in row Z, column U, so G = ZU.
Answer: BAG is coded as XV XU ZU.
Example 5
Question: In the same letter-label grid, decode YW ZV XW.
- YW: row Y, column W gives F.
- ZV: row Z, column V gives H.
- XW: row X, column W gives C.
Answer: The word is FHC.
Shortcuts and Tricks
- Underline the order of reading, row first or column first, as soon as you read the question.
- Locate letters by scanning one row at a time, not the whole grid.
- If row and column labels are different kinds (digits against letters), mistakes in order become impossible, so use that fact to cross-check.
- For decoding, split the code into pairs first and then look up each pair.
- Check one letter at a time against the options, and eliminate options that fail.
Common Mistakes
- Writing the column label before the row label when the question wants the reverse.
- Reading a grid code as a single number rather than a pair of labels.
- Skipping a letter that appears in two cells of a larger grid, where the question gives the rule for choosing.
- Mixing up the labels of rows and columns when they are both letters.
- Not repeating the code for repeated letters in the word.
Practice Questions
- In the 4 by 5 grid (rows 1 to 4, columns 5 to 9), what is the code of BAD?
- In the same grid, decode 26 39 18.
- In the same grid, what is the code of K?
- In the letter-label grid (rows X, Y, Z; columns U, V, W), what is the code of EGG?
- In the same letter-label grid, decode XU YV ZW.
- In the 4 by 5 grid, which letter is coded as 47?
Answers: 1) 16 15 18; 2) GOD; 3) 35; 4) YV ZU ZU; 5) AEI; 6) R.
Why Is This Topic Important?
- Different skill It tests lookup accuracy, not arithmetic.
- Exam use It is a regular short question in banking and SSC papers.
- Link to tables The habit of reading a grid is also used in Completing a Series Given in Matrix/Grid Form.
- Speed Once the order is fixed, each letter takes a few seconds.
What Comes Next?
The next topic is Coding by Analogy (Deriving the Coding Pattern from a Given Example). It takes sample words and their codes and asks you to find the hidden coding pattern yourself.
Key Terms and Formulas
- Matrix A grid of letters or digits
- Row label The name or number of a row
- Column label The name or number of a column
- Cell The place where a row and column meet
- Code The pair of labels that locates a letter
- Order of reading Row first or column first
Related Topics
- Substitution Coding (Words Substituted for Other Words)
- Coding by Analogy (Deriving the Coding Pattern from a Given Example)
- Letter Coding (Direct, Shifted and Reverse Alphabet Coding)
- Number Coding (Assigning Numeric Values to Letters/Words)
Exam Corner
Points to Remember
- The code of a letter is its row label and column label.
- Fix the reading order before you start.
- Decode by finding the crossing of the row and the column.
- Repeated letters give repeated codes.
- Check the labels do not overlap between rows and columns.
Do Not Confuse With
- Row vs column A row runs across; a column runs down.
- Row first vs column first The question states which label is written first.
- Matrix coding vs number coding Matrix coding uses a given grid; number coding uses alphabet positions.
- Code of a letter vs value of a letter The code is an address, not a numeric value.
Memory Hook
Row then column, unless told otherwise; the crossing is the letter.
GS Relevance
Frequently Asked Questions
What is matrix coding in reasoning?
Matrix coding is a coding-decoding type in which letters are arranged in a grid with labelled rows and columns. Each letter is coded by the label of its row and the label of its column, usually written row first. Decoding means finding the letter where the given row and column cross.
How do you solve a matrix coding question?
Read the order of the labels, row first or column first. For coding, find each letter in the grid and write its row and column labels. For decoding, split the code into pairs, go to that row and column, and read the letter at the crossing cell.
How do you decode a letter from a grid code like 37?
Split the code into its row part and its column part, 3 and 7 here. Go to row 3 and column 7 in the given grid and read the letter where they cross. In the 4 by 5 grid used on this page that letter is M.
What if the row and column labels overlap in a matrix?
If both rows and columns use the same digits, a code may refer to two different cells, so the question states which label is read first. Follow that order strictly. If no order is stated and the code is still ambiguous, the answer cannot be determined.
Is matrix coding difficult for beginners?
Matrix coding is among the easier coding types because it needs only careful lookup. The main errors are reading the labels in the wrong order and missing a letter. Fix the order first, scan one row at a time, and check each letter before choosing an option.
PYQ Practice — Statement Analysis
1 In a matrix code, the row label is written before the column label unless the question says otherwise.
This is the standard convention in exam questions.
2 In the 4 by 5 grid used on this page, the code of T is 49.
T is in row 4 and column 9.
3 In a matrix code, the code of a repeated letter changes with its position.
A letter has one fixed cell, so its code is always the same.
4 Matrix coding needs the alphabet positions of the letters.
It uses only the row and column labels of the grid.
Related Topics
Browse the full Reasoning index