Matrix 5x5 Visualizer

Interactive matrix indexing and slicing demonstration

Matrix Display
0
1
2
3
4
0
1
2
3
4
48
16
16
9
22
45
96
59
31
20
86
63
83
20
76
40
71
4
72
53
24
64
55
90
37
Selection Controls
matrix[_, _]
Row: not set | Column: not set
Advanced Slicing Guide
Basic Syntax: start:end:step
Reverse Slicing: Use negative step values
  • [::-1, :] - Reverse rows
  • [:, ::-1] - Reverse columns
  • [::-1, ::-1] - Reverse both
Step Examples:
  • [::2, ::2] - Every 2nd element
  • [1::2, :] - Every 2nd row starting from 1
Real-time Updates: All selections update automatically as you type.