Difference between EEG and MRI

An EEG focuses on the electrical activity of brain cells, and MRI’s look at morphological changes in the brain.
An EEG monitors the electrical activity of brain cells and can be used to detect abnormalities in the electrical activity of brain cells, such as in epilepsy, to aid in diagnosis.
Magnetic Resonance Imaging (MRI) is an imaging modality that scans the brain tissue to produce an image, and is a visualization modality. The MRI can observe the morphology of the brain and find out if the patient is suffering from occupational lesions, cerebral infarction, cerebral hemorrhage, and other diseases.
There is a clear difference between EEG and MRI, but both can be used for the diagnosis of brain diseases, and clinically the two can be combined for better diagnosis of brain diseases.