M=zeros(3,101),i=1,for t=0:0.01:1
Q=[34.4507,53.2133,72.6174,90.4922,107.6262,124.3115;
64.8979,62.9103,58.5398,53.8726,50.2527,48.5382;
92.7423,78.7443,64.6679,51.7908,40.0300,29.7099 ];
J=[(1-t)^5;5*t*(1-t)^4;
10*t^2*(1-t)^3;
10*t^3*(1-t)^2;
5*t^4*(1-t);
t^5],
R=Q*J,
M(:,i)=R,i=i+1,
end
X=M(1,:)',Y=M(2,:)',Z=M(3,:)',X1=Q(1,:)',Y1=Q(2,:)',Z1=Q(3,:)',plot3(X,Y,Z,X1,Y1,Z1) |