IRDYn/Untitled4.m

27 lines
415 B
Matlab
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

% 定义phi的范围
phi = linspace(0, 10, 100); % 从0到10100个点
% 初始化向量数组
x = zeros(size(phi));
y = zeros(size(phi));
z = (1 - exp(-3*phi)) ./ (1 - exp(-3));
% 创建图形
figure;
hold on;
axis equal;
grid on;
% 绘制向量
plot(phi,z);
% 设置图形属性
% xlabel('X');
% ylabel('Y');
zlabel('Z');
title('Vector Field Trajectory');
legend('Trajectory');
% % 设置视角
% view(3);