matlab相位图

% 清空工作空间和命令窗口
clear;
clc;

% 模拟生成时间t,位移y(t)和角位移theta(t)
t = linspace(0, 100, 1000);  % 时间从0到100,包含1000个点
y = 1e-5 * sin(2 * pi * 0.1 * t) .* exp(-0.01 * t);  % 位移y(t) 振荡衰减
theta = 1e-6 * cos(2 * pi * 0.1 * t) .* exp(-0.01 * t); % 角位移theta(t) 振荡衰减

% 绘制时程图(线性位移与角位移随时间)
figure;
subplot(2,1,1);
plot(t, y, 'k', 'LineWidth', 1.5);
xlabel('time (s)');
ylabel('y (m)');
title('a) 线性位移随时间');
grid on;

subplot(2,1,2);
plot(t, theta, 'k', 'LineWidth', 1.5);
xlabel('time (s)');
ylabel('\theta (rad)');
title('b) 角位移随时间');
grid on;

% 绘制相位图(位移-角位移的相图)
figure;
plot(y, theta, 'k', 'LineWidth', 1.5);
xlabel('y (m)');
ylabel('\theta (rad)');
title('相位图:角位移 \theta 与线性位移 y 的关系');
grid on;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值