How can I add legend or color index to my scatter function
1 view (last 30 days)
Show older comments
[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');
0 Comments
Answers (2)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!