필터 지우기
필터 지우기

How can I get Matlab R2016a to show hidden surfaces?

조회 수: 1 (최근 30일)
Jonas Krimmer
Jonas Krimmer 2016년 10월 10일
댓글: Jonas Krimmer 2016년 10월 11일
Creating a 3D array and slicing it with transparent surfaces is a possible volume visualization as of MATLAB R2014a. In R2016a, however, densely packed surfaces are shown as empty except for the surfaces at the outside. I assume there is a link between the new graphics system introduced in R2014b.
Would it be possible to reproduce the behavior of R2014a in R2016a?
% code example:
[x,y,z] = meshgrid(-1:0.01:1);
v = exp(- x.^2 - y.^2 - z.^2);
sl = [-1:0.1:1];
h = slice(x,y,z,v,sl,sl,sl);
shading interp
set(h,'FaceAlpha',0.1)
R2014a:
R2016a:

답변 (1개)

KSSV
KSSV 2016년 10월 10일
Try changing the value in
set(h,'FaceAlpha',0.1) ;
I think for ~0.5 both figures are same.
  댓글 수: 3
KSSV
KSSV 2016년 10월 10일
Play around with the value....
Jonas Krimmer
Jonas Krimmer 2016년 10월 11일
While it might look increasingly similar, it will not lead to the same effect. "Hidden" surfaces are presented as zeros in the newer MATLAB release.

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

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by