How can I add legend or color index to my scatter function
이전 댓글 표시
[Long,Lat] = LatLong2XY(deg2rad(file(2:end,1)),deg2rad(file(2:end,2)),deg2rad(file(2,1)),deg2rad(file(2,2)),0);
scatter(Lat,Long,[],file(2:end,3));
xlabel('distance(meters)');
ylabel('distance(meters)');
dim = [.2 .5 .3 .3];
title('Signal Strength of Antenna');
str='-40==Good Signal Strength ; -90==Moderate Signal Strength';
annotation('textbox',dim,'String',str,'FitBoxToText','on');
답변 (2개)
Luna
2018년 11월 16일
0 개 추천
madhan ravi
2018년 11월 16일
legend({'LAT Vs Long'});
카테고리
도움말 센터 및 File Exchange에서 Lengths and Angles에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!