Problem feeding scatterm rgb-array
이전 댓글 표시
I've been working on project connected with maps and radiolocation, and i wanted to display data i have over geographic borders. Since my data is a dataset of points of Latitude&Longitude, as well as reflection coeff, which differs accordingly, i wanted to colorize the data. for map itself i used geoshow(), and for colored data i used scatterm(). I'm feeding scatterm 3 arrays La, Lo & cmap-(m-by-3 rgb triplets). La& Lo are m-long, and i get this error :
Error using scatter (line 81)
CData must be an RGB triplet, an M-by-1 vector of the same length as X, or an M-by-3 matrix.
Error in internal.mapgraph.GeoScatterGroup (line 70)
scatter(x, y, sizedata, cdata, ...
Error in scatterm (line 62)
mapgraph = internal.mapgraph.GeoScatterGroup(ax, lat, lon, args{:});
I checked in work space, sizes match. When i use 'red' and not cmap, it works fine. What's more interesting, is that the error doesn't always occur, when using some other datasets, and the picture is displayed properly. Any help would be appreciated! P.S. wcol is a function, mapping data value to rgb color
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Vector and Raster Map Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!