Plot path of a aicraft by plot3
古いコメントを表示
x0 = 0;
y0 = 0;
z0 = 0;
V = 100;
t_start = 0;
t_end = 100;
delta_t = 1;
t = t_start:delta_t:t_end;
for i = 1:length(t)
chi = 1 + sin(i)^2;
gamma = 1+ cos(i)^2;
x_new = delta_t*(V*cos(chi)*cos(gamma)) + x0;
y_new = delta_t*(V*sin(chi)*cos(gamma)) + y0;
z_new = -delta_t*(V*cos(gamma)) + z0;
x0 = x_new;
y0 = y_new;
z0 = z_new;
plot3(x_new, y_new, z_new, '.');
hold on
zlabel('t')
end
I have lines of code. And i want to draw a path of aircraft in plot 3D but my result just show point. Help me!!!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

