How to hide the obscured portion of the lines in 3D line plot using plot3 command ??
1 次查看(过去 30 天)
显示 更早的评论
I want to hide the obscured portion in a 3D line plot, similar to the attached image. Is it possible with the plot3 command or the surf/mesh command is required for this ?
0 个评论
回答(1 个)
Erivelton Gualter
2018-10-22
You may check the properties of the surf function ( https://www.mathworks.com/help/matlab/ref/surf.html ). I am sure if you play a bit you can find it.
Here is a code example, but I am not sure if is it what you want.
[X,Y] = meshgrid(-5:.2:5);
Z = Y.*sin(X) - X.*cos(Y);
surf(X,Y,Z,'FaceAlpha',0.5, 'FaceColor', [1 1 1])
1 个评论
Tan Phan
2019-12-9
How can i change the line behind my shape to "- - -"(just like when i drawing on paper)? And when i rotate it's with rotate on toolbar it's will change to continuous line if it's in front, and line which behind will turn to "- - -".
Thank you!
Sorry for my bad English!![Untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/253571/Untitled.png)
![Untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/253571/Untitled.png)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!