3d trajectory plot
显示 更早的评论
Im trying to create a 3d plot of 10 trajectories. I have the equation for the z axis and the x axis as an array. However i would like to start the plot at a point along the y axis instead of zero. I know how I want to go plotting the trajectories, it's getting the plot to start at a given point on the y axis. For example starting at the point (0 24 0) or (0 26 2).
5 个评论
Ameer Hamza
2020-4-6
What are the equations of these trajectories?
darova
2020-4-6
What is the question?
Tyler Hajovsky
2020-4-6
Tyler Hajovsky
2020-4-6
Marcos
2024-11-27
移动:Walter Roberson
2024-11-27
How to plot a initial point to final point in 3D graphics, using simultanious trajectory definite vs real time trajectory real PSO
回答(1 个)
Ameer Hamza
2020-4-6
编辑:Ameer Hamza
2020-4-6
Try this
v= 6.5;%ft/s
g= 32.2; %ft/s^2
theta= 30; %degrees
x= 0:.1:2;
y= randi(48)*ones(size(x));
z1= (x*tand(theta)-((g*x.^2)/(2*v^2*.75)));
plot3(x,y,z1)
grid on
xlabel('x');
ylabel('y');
zlabel('z');
4 个评论
Tyler Hajovsky
2020-4-6
Ameer Hamza
2020-4-6
It is not empty array. It is array of all ones. I have updated the code to clarify it.
Tyler Hajovsky
2020-4-6
Ameer Hamza
2020-4-6
Glad to be of help.
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
