File Exchange

image thumbnail

Quick, Easy Maps (Miller and Globe Projections)

version 1.0 (890 Bytes) by

Two quick and easy functions to create simple map figures.

4 Downloads

Updated

No License

Editor's Note: This file was a File Exchange Pick of the Week

I've been using the Mapping Toolbox for years and I've found it very powerful; however, beginning users always seem to have the same initial difficulties that I once did when apporaching two issues:

(1) how to get a simple map of the world into a figure quickly, and

(2) how to get a quick rotatable globe into a figure quickly.

The functions I've uploaded, DRAWMILLER and DRAWGLOBE take care of these issues.

You can use an argument such as drawmiller(90) to recenter the flat map. To rotate the globe, either use the plot rotation tool on your figure or use the MATLAB VIEW command.

Example:
drawglobe
plotm(40.733,-73.917,'b.')
for d=2000:2000:6000
[t,n]=scircle1(40.733,-73.917,km2deg(d));
plotm(t,n,'b-')
end

Michael Kleder, October 2004

Comments and Ratings (3)

John de Leon

Hi Michael, I wasn't able to run your code in R2010a. Would you mind sharing an updated version of your source code? Thanks in advance.

ben h

thank you very much!! makes my life much easier. long live open exchange!

cuneyt aydin

it is really nice globe which you can rotate easily on matlab!..it reminds the globe earths on the tables..thanks

MATLAB Release
MATLAB 7.0.1 (R14SP1)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video