highlighting point in 3D-graph
이전 댓글 표시
In a 3D-graph made with surf I like to highlight one point on the shown surface. I know (x,y,z) of that point, but that isn't a matrix, so surf does not accept it. Any tips how to do this?
댓글 수: 7
Adam
2017년 12월 18일
doc plot3
should allow you to plot a single point with a marker in 3d.
Weia Reinboud
2017년 12월 18일
Adam
2017년 12월 18일
Axes settings can be controlled independently of plotting instructions.
If you use the raw plotting instruction, 'line', in this case even though it is just one point, too with all arguments as 'property', 'value' pairs it should not come with any side-effects that change the axes behaviour, e.g.
line( hAxes, 'XData', 3, 'YData', 4, 'ZData', 5, 'Marker', '*' );
Weia Reinboud
2017년 12월 18일
Weia Reinboud
2017년 12월 18일
Weia Reinboud
2017년 12월 18일
Oh yeah, I always forget to explain that. hAxes is what I generally call an axes handle. You should get used to always giving an explicit axes handle to plotting instructions.
You can change the size of the marker and choose from different marker types too. The documentation gives you all the parameters you can change. I can't remember offhand - 'MarlerSize' maybe is the parameter name, but I can't remember what a sensible number is or what the default is.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!