필터 지우기
필터 지우기

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 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