필터 지우기
필터 지우기

How to remove lines from mesh plot

조회 수: 21 (최근 30일)
Joseph Lee
Joseph Lee 2017년 12월 15일
편집: Joseph Lee 2017년 12월 15일
How do i remove the columns of straight lines across x axis? shading interp and grid off did not work
  댓글 수: 1
Joseph Lee
Joseph Lee 2017년 12월 15일
편집: Joseph Lee 2017년 12월 15일
notice how the lines occurs at 0.05 intervals, i dont think it is related to the grids
plotting code if this helps Y is a 401x401 matrix which corresponds to the height in the plot
x = 10:0.05:30;
z = 1:0.005:3;
[X,Z] = ndgrid(x,z);
mesh(X,Z,Y)
xlabel('x'),ylabel('z'),zlabel('height')
axis auto
xlim ([10 12])

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

채택된 답변

Image Analyst
Image Analyst 2017년 12월 15일
How did you plot it in the first place? Maybe set 'EdgeColor' to 'none' (works in some functions like histogram). Or try
grid off
  댓글 수: 3
Image Analyst
Image Analyst 2017년 12월 15일
편집: Image Analyst 2017년 12월 15일
And for the first question "How did you plot it in the first place"??? Can you attach your Y data in a .mat file so we can try things ourselves with your data?
You DO know though that mesh() is supposed to give a wireframe surface, right? If you don't want that, try surf().
Joseph Lee
Joseph Lee 2017년 12월 15일
편집: Joseph Lee 2017년 12월 15일
Thanks!It worked after using both surf + edgecolor none

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

추가 답변 (0개)

카테고리

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