circlem

バージョン 1.2.0.0 (140 KB) 作成者: Chad Greene
Draw circles on maps
ダウンロード: 2.7K
更新 2014/10/15

ライセンスの表示

Drawing a circle of a given radius on a map using Matlab's built-in functions is surprisingly unintuitive. So when there's some sort of outbreak or nuclear threat emanating from a city and you need to make a fear-mongering map on the double, simply type circlem(lat,lon,radius) to instantly depict the imminent danger facing everyone inside the circle.
Syntax
circlem(lat,lon,radius)
circlem(...,'units',LengthUnit)
circlem(...,'PatchProperty',PatchValue)
h = circlem(...)
[h,circlelat,circlelon] = circlem(...)
Description
circlem(lat,lon,radius) draws a circle or circles of radius or radii given by radius centered at lat, lon, where radius, lat, and lon may be any combination of scalars, vectors, or MxN array. All non- scalar inputs must have matching dimensions.

circlem(...,'units',LengthUnit) specifies a length unit of input radius. See validateLengthUnit for valid units. Default unit is kilometers.

circlem(...,'PatchProperty',PatchValue) specifies patch properties such as edgecolor, facecolor, facealpha, linewidth, etc.

h = circlem(...) returns the patch handle of plotted circle(s).

[h,circlelat,circlelon] = circlem(...) also returns arrays of latitudes and longitudes corresponding to the outline of each circle drawn. Each "circle" is in actuality a polygon made of 100 lat/lon pairs.

引用

Chad Greene (2025). circlem (https://www.mathworks.com/matlabcentral/fileexchange/48122-circlem), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2012b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersMap Display についてさらに検索
謝辞

ヒントを得たファイル: Draw a circle., Draw a filled circle, scalebar for maps, circle plotter, quivermc

ヒントを与えたファイル: gdistm, scattertextm, fastscatterm

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

circlem/html/

バージョン 公開済み リリース ノート
1.2.0.0

Expanded function header/help.

1.1.0.0

link to related FEX submissions

1.0.0.0