Method: 45 patients with ischemic or hemorrhagic stroke will be randomly assigned to one of 3 groups: cTBS, tDCS, or sham stimulation. Each group will receive the corresponding stimulation therapy 3 times per week for 3 weeks, immediately before intensive physical therapy. Before and after the treatment period, standardized assessments of sensorimotor function areas are obtained together with electroencephalography and functional magnetic resonance recordings. These recordings will be used to analyze and compare the neural effects of each treatment modality.