已知(x,y,z)坐标,如何用matlab作三维曲线?

2024-11-18 12:33:20
推荐回答(1个)
回答1:

输入下面的语句
>> A=[0,150,0;0,100,-2.20;0,50,-4.85;0,0,-7.3;0,-50,-5.10;0,-100,-2.75;0,-150,0; 300,150,0;300,100,-2.50;300,50,-4.85;300,0,-6.6;300,-50,-4.75;300,-100,-2.55;300,-150,0; 300,150,0;250,150,1.15;200,150,1.75;150,150,2.00;100,150,1.55;50,150,0.80;0,150,0;
300,-150,0;250,-150,1.35;200,-150,2.15;150,-150,2.25;100,-150,1.65;50,-150,1.00;0,-150,0];
>> plot3(A(:,1),A(:,2),A(:,3))