The Duke of Edinburgh has presented awards to prominent academics in recognition of their achievements in science and electronics.
During a ceremony in the Scottish capital, Philip gave out the Royal Society of Edinburgh's (RSE) highest accolades.
Dr David Milne and Professor Sir Edwin Southern received royal medals as Professor Gerhard Sessler was awarded the James Clerk Maxwell Award.
It was the eighth time the Duke has presented the medals, which were introduced by the Queen in 2000 and mark outstanding achievements in all intellectual fields.
Prof Sir Edwin was first to receive his award, given to him to recognise his outstanding contribution to molecular biological science.
The audience of about 100 Society fellows and their guests heard Prof Sir Edwin's methods have been central to technology in biomedical research for the past 20 years.
Dr Milne was then awarded, with his medal marking four decades of working in electronics and recognising his leadership of Wolfson Microelectronics.
Philip, who has been an honorary fellow of the society for 61 years, laughed with Dr Milne as he handed over his medal.
Speaking afterwards, Dr Milne said: "It's fantastic, it's a really incredible recognition, particularly alongside all these other scientists.
"I am very, very pleased to receive the honour from the Duke of Edinburgh today. He has incredible enthusiasm for the RSE and he's always very interested in what people are doing."