Trying to plot a point on m_map but it does not appear.

Hello, I have creating a map using m_map and now have to plot a few points on it. I was using the m_plot function and hold on to plot these coordinates but for some reason they do not appear on the map. I am fairly new to matlab and I do not understand what is going wrong. I have attached my code as well as the figure. Thank you!

답변 (1개)

Kelly Kearney
Kelly Kearney 2017년 5월 22일
Like plot, the default marker for m_plot is none... good for plotting lines, but not single points. Add a marker and you should see your points:
m_plot(-95.9002, 27.3821, 'bo') %plot the moorings

댓글 수: 2

that makes sense, thank you! is there a specific section of the code that I should place that?
Kelly Kearney
Kelly Kearney 2017년 5월 24일
편집: Kelly Kearney 2017년 5월 24일
Place it where your previous call to m_plot was (all I did was change the LineSpec in your original line of code from 'b' to 'bo', i.e. blue-with-circle markers).

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

질문:

2017년 5월 22일

편집:

2017년 5월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by