Problem in x and y trajectory.

1 次查看(过去 30 天)
I want to make 3D trajectory of x and y, i have tried it in 2D but nothing is displayed using the plot here is my code.
X=1;
Y=0;
Z=1;
X=-10*X+10*Y;
Y=28*X-Y-X*Y;
Z=-(8/3)*Z+X*Y;
v0 = 2; % velocity
T = 5000; % time
t = 0:0.01:T;
x = v0* cos(Z);
y = v0* sin(Z);
figure,plot(x,t,y,t);

回答(1 个)

Carlos Guerrero García
After the first (x,y,z)=(1,0,1) assignment, the lines before velocity states (X,Y,Z)=(-10,-280; 280-8/3)=(-10,-280,832/3), and so, in the last part of your code, (x,y) are constant values, independent of the t values.
I don't know what is the trajectory you're trying to plot

类别

Help CenterFile Exchange 中查找有关 3-D Scene Control 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by