Question about PLOTTING over MAPS

3 次查看(过去 30 天)
Diana
Diana 2012-7-17
I am using a code to generate the maps, but I'm still having a little trouble adding my own data. What I need is very simple, I have a data file with latitude, longitudes and the number of times that lightning struck on that location (Basically I need a density plot). Any comments will be very helpful.
Thank you, Diana
  2 个评论
Doug Hull
Doug Hull 2012-7-17
Do you need this to be on a map projection, or treating the world as flat is fine because lat and lon are really just X and Y to you?
Are you using the mapping toolbox?
do you know how to convert this to density, regardless of it being lat and lon?
Diana
Diana 2012-7-17
I am using a map projection (m_proj function) basically yes the map is flat...I had to download and add all the maps library because I have the student version of matlab. And I just have the number of times that it lightning struck on a specific latitude and longitude. I have been able to plot a mark on the location of every strike but my problem is I don't know how to include the number of times in every location with a color bar for better view.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2012-7-17
pointsize = 8;
scatter(lat(:), long(:), pointsize, numstrikes(:))
colorbar
  12 个评论
Walter Roberson
Walter Roberson 2012-7-17
That package is a bit big for me to "sight read", and unfortunately I do not have access to MATLAB for the next bit of time (waiting for a new computer to arrive...)
I don't think I will be able to assist with that toolbox within a reasonable time.
Diana
Diana 2012-7-17
No problem. I appreciate the help that you have given me so far.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Geographic Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by