Determine continent given the country
2 次查看(过去 30 天)
显示 更早的评论
I have a list of countries and I'm looking for a quick way to get the continent for each one of them.
Any idea?
Thanks
1 个评论
John D'Errico
2016-11-4
编辑:John D'Errico
2016-11-4
What have you tried? Lots of easy things would work, from a switch statement, to regexp on a cell array, strmatch (ok, strncmp), ismember, etc. Why not try writing some code using any of the above? If you have a problem with what you wrote, then ask. But this is an easy problem, so make an effort.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!