The researchers focused on the effect of climate change on the bamboo, which is the giant panda's principal food. Researchers discovered that while some types of bamboo reduced in range due to global warming, others actually increased.
The findings will provide important information to help to safeguard the endangered animal's future.
There is particular concern for animals already struggling, such as the giant panda, which is hanging on in a small area of China.
According to Director of the Royal Botanic Gardens in Edinburgh, Professor Steve Blackmore, "Pandas spend 14 hours a day eating, and bamboo forms 99 per cent of their diet, so they are completely reliant on the right bamboo species being present in order to survive."