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);
0 件のコメント
回答 (1 件)
Carlos Guerrero García
2022 年 12 月 2 日
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で 3-D Scene Control についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!