Shifting the surf plot horrizontally
조회 수: 1 (최근 30일)
이전 댓글 표시
Hey, so I have X, Y and Velocity (Z) and I plot a surf plot using the following code but I want the middle point to be at 0. Can someone help me with this.
t =min(X); t2=max(X);
h=min(Y); h2=max(Y);
[xq,yq]=meshgrid(t:0.1:t2,h:0.1:h2);
vq=griddata(X,Y,velu,xq,yq,'cubic');
figure()
surf(xq,yq,vq)
shading interp
Thanks in advance.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!