Edinburgh is the most expensive city in the UK for students, according to the Royal Bank of Scotland's student living index.

Of the ten most affordable cities for undergraduates, the only Scottish city to make the list was Dundee, at number ten.

Portsmouth, Liverpool and Newcastle were found to be the cheapest cities for students.

The index surveyed 2500 students across the UK to determine the most and least affordable places to study of 25 university cities.

The survey took into account a range of factors, including living and accommodation costs and average incomes for students.

It also looked at how much students spend on going out and how much time they spend studying.

It found that above-average weekly rent of about £112 and significantly lower than average term-time income of about £995 combined to make Scotland's capital the least affordable place to study.

The affordability of Portsmouth, Liverpool and Newcastle was boosted by students in all three cities having the highest term-time incomes of around £1515, £1425 and £1421 respectively.

The three cities also have lower weekly rent costs than the UK average of £109, contributing to their affordability.

Elsewhere, the survey found that students spent an average of 31 hours a week studying and just £7-£8 on alcohol.

Dan Jones, Royal Bank of Scotland head of student accounts, said: "Making the most of university can be expensive and there is a massive difference in the costs students face depending on where they choose to study."

The only other Scottish entry on the list was Glasgow, said to be the 16th most affordable city for students in the UK.