Using first-principles calculations based on spin-polarized density functional theory, we investigate the electronic properties of metallic carbon nanotubes (MCNTs) with partial hydrogenation or vacancy defects. The calculated results show that the energy band structures of MCNTs strongly depend on the adsorption site or the vacancy-defect site. Interestingly, our results show the nonmagnetic semiconducting behavior of MCNTs in the case of balanced H adsorption or vacancy defects. However, the MCNTs exhibit magnetic metallic behavior in the case of imbalanced H adsorption or vacancy defects, a...