Chinese officials and some public health experts have credited the draconian confinement measures on a city of 11 million, and much of Hubei province, of which it is the capital, with slowing the spread of the disease and turning the tide of infection across China.

Other countries, including Iran, Italy and the United States, are struggling to manage their outbreaks.