A tunable terahertz filter and its switching properties in terahertz region based on a defect mode of a metallic photonic crystal