
How to add contour plot to xz and yz surface to 3d plot
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
Hello All,
I have a 3d plot created with surfc.
I want to create contour lines on the xz and yz surface of the backround also.
How can i do it? I attached my 3d data.
Thanks for advance.
댓글 수: 0
채택된 답변
  Star Strider
      
      
 2022년 3월 12일
        I am not certain what the desired result is.  
Try this — 
LD = load('matlab.mat');
figure
surf(LD.x, LD.y, LD.V0)
hold on
contour3(LD.x, LD.y, LD.V0, '-r', 'LineWidth',1)
hold off
grid on
xlabel('x')
ylabel('y')
zlabel('V_0')

.
댓글 수: 5
  Star Strider
      
      
 2022년 3월 12일
				As always, my pleasure!  
(I do not understand the variables referred to in your previous Comment.  I assume the plot3 calls draw the contour levels on the axes, or with respect to mesh, draw planes through them.)  
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


