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!