Migraine patients show abnormalities of cerebral electrophysiology that manifest themselves mainly during the attack interval. Cortical-evoked potentials of migraineurs fail to habituate to repetitive presentations of visual stimuli, and the amplitude of components of their auditory cortical-evoked potentials have a higher dependence on the stimulus intensities than in healthy subjects. A computer model of a neural hetwork has been developed that is able to reproduce both these neurophysiological dysfunctions. It predicts a positive correlation between the magnitudes of both these dysfunctions. The model also offers an explanation of why mutations in the same ion channel gene with opposite consequences on channel function, e.g. P/Q Ca2+ channels in migraine, may lead to similar electrophysiological abnormalities.