Shifting the surf plot horrizontally

1 回表示 (過去 30 日間)
Anisha Varughese
Anisha Varughese 2019 年 8 月 14 日
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 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by