Clear Filters
Clear Filters

Problem in x and y trajectory.

3 views (last 30 days)
Muhammad Shoaib
Muhammad Shoaib on 18 Dec 2015
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);

Answers (1)

Carlos Guerrero García
Carlos Guerrero García on 2 Dec 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

Categories

Find more on 3-D Scene Control in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!