Inorganic nanoribbons can be attached to an elastic surface at selected positions to make wave-like structures that maintain their semiconducting properties when stretched or compressed. These nanostructures will prove to be immediately useful in flexible electronics.