MATLAB Answers

Hello. I tried many times to make a Mongolian map using Matlab. But not successful. Please help me

2 views (last 30 days)
Byambakhishig Ganbold
Byambakhishig Ganbold on 19 Mar 2015
Edited: Nyamkhuu on 2 Jun 2015
Make the Mongolian border of the map using the mapping toolbox.
figure
worldmap 'mongolia'
axis off
getm(gca,'MapProjection')
geoshow('landareas.shp', 'FaceColor', [0.5 0.7 0.5])
geoshow('worldrivers.shp', 'Color', 'blue')
geoshow('worldcities.shp', 'Marker', '.', 'Color', 'red')
I have tried to make the above code. How do I improve this code?

  1 Comment

Sign in to comment.

Answers (2)

Enkh
Enkh on 20 Mar 2015
Edited: Enkh on 20 Mar 2015
Sain bainuu Byambakhishig,
Tani shig Mongolchuud MATLAB khereglej baigaag kharakhad saikhan baina! Ta Mongoliing gazriing zurag kharuulj chadakhgui baigaa uchir ni uls oronii shapefile (.shp file) baikhgui bolokhleer bolsongui.
Tiimees ta uls oronii shapefile ikhleed neg gazraas tataj avakh kheregtei. Jisheen:
http://thematicmapping.org/downloads/world_borders.php
Tegeed shapefile tataj avsanii daraa ta doorkhi code guilgevel bolno.
figure;
worldmap 'mongolia';
axis off;
geoshow('TM_WORLD_BORDERS_SIMPL-0.3.shp', 'FaceColor', [0.5 0.7 0.5]);
Ta MATLAB Central deer dongoj ekhelj baigaa yum shig baina tiimuu? Asuult asuukhad ireeduid zovlolokh yum bol sain nariin delgerengui asuult bichikh gej oroldooroi. Bas MATLAB code bichvel {}code tovch khereglevel deerkhitei adilkhan goyo garj irne.
English: Download a shapefile with country and border information and then use that to display the border.

  3 Comments

Byambakhishig Ganbold
Byambakhishig Ganbold on 21 Mar 2015
Sain sain bna uu
Tusalsand mash ih bayrlalaa, bi MATLAB CENTER deer dongoj ajiillaj ehlej bgaa yum aa. Diplomiin ajild maani mongoliin gazrin zurag gargah shaardlaga garaad gargaj chadahgui hed honog gatschaad bsiimaa ashgui ta tussallaa, mon heregtei zuvulguu ugsund bayrlalaa :) .
Byambakhishig Ganbold
Byambakhishig Ganbold on 30 Apr 2015
Sain bna uu tanaas dahiad yum asuuh gesen yumaa bi delgecend zuvhun mongol ulsiin gazriin zurgiig gargah gesen yumaa harin minii ur dun ni ingej garaad bnaa.
Nyamkhuu
Nyamkhuu on 2 Jun 2015
shapefile-aa
C:\Program Files\MATLAB\R2011b\toolbox\map\mapdata
end huulj bga bz de. tegsen ch bolohq yum
Error using openShapeFiles>checkSHP (line 68)
aldaa garch irj bna

Sign in to comment.


Chad Greene
Chad Greene on 3 Apr 2015
Similar to Enkh's solution, but with just one line of code, you can use borders:
borders('mongolia','facecolor',[0.5 0.7 0.5])

  11 Comments

Show 8 older comments
Guillaume
Guillaume on 8 May 2015
You get the above just using this instruction:
borders('mongolia','facecolor',[0.5 0.7 0.5])
?
On my machine, it produces:
which looks like what you want except for the axis shape that I assume comes with the mapping toolbox (which i don't have).
If you don't have the same result, then you need to explain what you're doing different. (And which version of matlab you're using).
Chad Greene
Chad Greene on 14 May 2015
If you're still working on the same map after two months, perhaps drawing it manually is the way to go. Inkscape might do the trick.

Sign in to comment.

Sign in to answer this question.