Examples of molecular switching in inorganic solids, due to temperature, light, pressure, and magnetic field