Overlapping (intersection) of two points is wrong. It should depends on which value is higher.
1 回表示 (過去 30 日間)
古いコメントを表示
Philipp Mueller
2016 年 9 月 26 日
コメント済み: Philipp Mueller
2016 年 9 月 26 日
My problem is: Some points are overlapping. But sometimes the overlapping of this points is wrong. The intersection of this 2 points should be filled with the color of the point with the higher value. The value is the third column of my data table. Thank you for your support.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156636/image.png)
Input_Matrix = textread('Rainflow_Input1.txt')
[zeilen,spalten]=size(Input_Matrix)
x = Input_Matrix(:,1)
y = Input_Matrix(:,2)
z = Input_Matrix(:,3)
colorbar('location','Manual', 'position', [0.93 0.1 0.02 0.81]);
a=30
scatter(x,y,a,z,'filled')
colorbar;
0 件のコメント
採用された回答
Walter Roberson
2016 年 9 月 26 日
scatter3() and use the color as the z value. Then use view() to look down on it from above.
3 件のコメント
Walter Roberson
2016 年 9 月 26 日
編集済み: Walter Roberson
2016 年 9 月 26 日
a = 30;
scatter3(x, y, z, a, z, 'filled');
view(0, 90)
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!