Fill and color polygons based on single value

6 ビュー (過去 30 日間)
Claire Navarro
Claire Navarro 2017 年 12 月 14 日
回答済み: Amy Haskins 2017 年 12 月 21 日
How do you plot multiple polygons (i.e. states) according to their respective, individual value (e.g. population density)? The final product should be a patched U.S. with states colored according to their respective values. I have latitude, longitude, and density values and I've tried patch, fill, and imagesc commands, but to no avail.
  1 件のコメント
Amy
Amy 2017 年 12 月 20 日
Hi Claire, could you possibly share some more details about what you've tried already? How are you using the commands you mentioned, and are you running into errors using them or are they just not returning the results you expect?

サインインしてコメントする。

回答 (1 件)

Amy Haskins
Amy Haskins 2017 年 12 月 21 日
Hi Claire,
What you are describing is known as a choropleth map. If you have access to the Mapping Toolbox, you can try following the example below to help you get started.
https://www.mathworks.com/help/map/create-chloropleth-map-of-population-density.html
Amy

カテゴリ

Help Center および File ExchangePolygons についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by