필터 지우기
필터 지우기

How to hide the obscured portion of the lines in 3D line plot using plot3 command ??

조회 수: 3 (최근 30일)
Alok Negi
Alok Negi 2018년 10월 16일
댓글: Tan Phan 2019년 12월 9일
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 ?

답변 (1개)

Erivelton Gualter
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
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2014b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by