フィルターのクリア

Plot Wendland C2 function

8 ビュー (過去 30 日間)
Haris Hameed
Haris Hameed 2013 年 9 月 21 日
コメント済み: Irfan Badar 2017 年 8 月 3 日
i want to plot Wendland C2 function given by the expression
Z1 = ((1-R).^4*(4.*R+1));
i am using the following lines to plot
[X,Y] = meshgrid(-1:0.01:1);
R = abs(sqrt(X.^2 + Y.^2));
Z1 = ((1-R).^4*(4.*R+1)); %Wendlands C2
surf(X,Y,Z1,'FaceColor','red','EdgeColor','none')
but i cannot plot it correct as shwon in the figure
need some help in this regard
  1 件のコメント
Irfan Badar
Irfan Badar 2017 年 8 月 3 日
Z1 = ((1-R).^4.*(4.*R+1)); %Wendlands C2

サインインしてコメントする。

回答 (1 件)

Irfan Badar
Irfan Badar 2017 年 8 月 3 日
hope fully this will work [X,Y] = meshgrid(-1:0.01:1); R = abs(sqrt(X.^2 + Y.^2)); Z1 = ((1-R).^4.*(4.*R+1)); %Wendlands C2 surf(X,Y,Z1,'FaceColor','red','EdgeColor','none')

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by