anyway to read value of color column using data cursor
1 回表示 (過去 30 日間)
古いコメントを表示
Hi:
I have a scatter points x and y, and I colored them with c, below is the test code:
[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
C = X.*Y;
x=reshape(X,[],1);
y=reshape(Y,[],1);
c=reshape(C,[],1);
scatter(x,y,1,c)
what I want, is to use data cursor to find the corresponding 'c' value, but when I double-click the points, it shows the number of x and y, not the corresponding c:
![Capture.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/225973/Capture.jpeg)
is there any way to read the 'c' in this figure?
Thanks!
Yu
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!