The material that makes up the brain. Gray matter is involved with brain functions such as cognition, perception (hearing and seeing), memory, emotions, muscle control, and body functions. Higher levels of gray matter are associated with better memory.