Problem in x and y trajectory.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Carlos Guerrero García
il 2 Dic 2022
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 Commenti
Vedere anche
Categorie
Scopri di più su 3-D Scene Control in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!