% Author: Housam Binous
% Forced Duffing Oscillator
% National Institute of Applied Sciences and Technology, Tunis, TUNISIA
% Email: binoushousam@yahoo.com
close all
clear
clc
global gamma omega epsilon GAM OMEG
gamma=0.1;
omega=1;
epsilon=0.25;
OMEG=2;
% we get chaos and a strange attractor if the driving force GAM=1.5
% Poincar� section is a complicated curve namely a fractal
GAM=1.5;
[t x]=ode45(@duffing,0:2*pi/OMEG/100:4000,[0 1]);
figure(1)
plot(t(2000:6000),x(2000:6000,1),'r')
axis tight
title('time series')
figure(2)
plot(x(2000:10000,2),x(2000:10000,1),'b')
axis tight
title('phase space')
figure(3)
for i=5000:100:127300
n=(i-4900)/100;
x1(n)=x(i,2);
x2(n)=x(i,1);
end
plot(x1(:),x2(:),'g.')
axis tight
title('Poincar� section')
% We get a limit cycle when the driving force GAM=0.5
% Poincar� section is a sinle point
GAM=0.5;
[t x]=ode45(@duffing,0:2*pi/OMEG/100:4000,[0 1]);
figure(4)
plot(t(2000:6000),x(2000:6000,1),'r')
axis tight
title('time series')
figure(5)
plot(x(5000:10000,2),x(5000:10000,1),'b')
axis tight
title('phase space')
figure(6)
for i=5000:100:127300
n=(i-4900)/100;
x1(n)=x(i,2);
x2(n)=x(i,1);
end
plot(x1(:),x2(:),'g.')
axis([-2 2 -2 2])
title('Poincar� section')
Duffing.zip_DUFFING_Duffing 信号_duffing matlab_duffing方程_matlab d
版权申诉
5星 · 超过95%的资源 117 浏览量
2022-07-14
01:08:44
上传
评论 1
收藏 25KB ZIP 举报
JaniceLu
- 粉丝: 78
- 资源: 1万+
最新资源
- 基于串口通信的光通信上位机,包括运动控制和通信协议
- 串口与以太网文件传送协议(或自定义控制协议)
- Qt开发windows系统安装教程与代码实例.txt
- QT6实现的附带文件传输协议的串口终端
- 一个串口通讯类和调用Demo 通过设置串口、设置串口自定义协议,可方便对串口发送数据与接收数据
- 华为OD模拟题及参考答案.仅供学习和模拟考试使用
- stm32f103c8t6基于modbus协议和使用串口读取温湿度
- 英雄联盟LOL金克斯4K电脑壁纸
- Microbrain道闸产品上位机,以MahApps库为基础搭建界面,集成了串口(UART)、CAN、WIFI通信,十六进制协议
- Android串口通讯, 支持发送数据回调, 支持并发处理, 自定义协议, CRC校验, 自动粘包, 自动去除冗余的干扰数据
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论1