电力电子作业.docx
《电力电子作业.docx》由会员分享,可在线阅读,更多相关《电力电子作业.docx(13页珍藏版)》请在冰点文库上搜索。
电力电子作业
多项式拟合绘图程序:
clear;clc;close;
x=0:
0.1:
2*pi;%生成样本点x
y=cos(x)+2.5*rand(size(x));%点y,通过随机矩阵
p1=polyfit(x,y,2);%拟合出多项式2阶
p2=polyfit(x,y,3);%拟合出多项式3阶
p3=polyfit(x,y,4);%拟合出多项式4阶
y1=polyval(p1,x);%求多项式的值
y2=polyval(p2,x);%求多项式的值
y3=polyval(p3,x);%求多项式的值
plot(x,y,'-',x,y1,'*',x,y2,'--',x,y3,'.');%绘制多项式
axis([02*pi-13.5]);%取定x,y轴范围
xlabel('x');ylabel('y');
legend('原波形','二阶拟合','三阶拟合','四阶拟合');
title('多项式拟合');
拟合曲线:
Buck变换器:
仿真原理图:
电流连续时:
绘图程序:
subplot(2,1,1);
plot(dianliulianxu.time,dianliulianxu.signals
(1).values);
axis([0.00750.0080-200150])
xlabel('t/s');ylabel('U/V');
title('电流连续时电感上的电压波形');
gridon;
subplot(2,1,2);
plot(dianliulianxu.time,dianliulianxu.signals
(2).values);
axis([0.00750.0080-214]);
xlabel('t/s');ylabel('I/A');
title('电流连续时电感上的电流波形');
gridon;
电流连续时电感上的电压电流波形:
电流断续时:
绘图程序:
subplot(2,1,1);
plot(dianliuduanxu.time,dianliuduanxu.signals
(1).values);
axis([0.00750.0078-130130])
xlabel('t/s');ylabel('U/V');
title('电流断续时电感上的电压波形');
gridon;
subplot(2,1,2);
plot(dianliulianxu.time,dianliulianxu.signals
(2).values);
axis([0.00750.0078-214]);
xlabel('t/s');ylabel('I/A');
title('电流断续时电感上的电流波形');
gridon;
电流断续时电感上的电压电流波形:
闭环控制系统:
反激变换器仿真原理图:
变压器原边:
绘图程序:
subplot(2,1,1);
plot(yuanbian.time,yuanbian.signals
(1).values);
axis([01e-5-20120]);
xlabel('t/s');ylabel('U1/V');
title('变压器原边电压波形');
gridon;
subplot(2,1,2);
plot(yuanbian.time,yuanbian.signals
(2).values);
axis([01e-500.03]);
xlabel('t/s');ylabel('I1/A');
title('变压器原边电流波形');
gridon;
原边波形:
变压器副边:
绘图程序:
subplot(2,1,1);
plot(fubian.time,fubian.signals
(1).values);
axis([01e-5-122]);
xlabel('t/s');ylabel('U2/V');
title('变压器副边电压波形');
gridon;
subplot(2,1,2);
plot(fubian.time,fubian.signals
(2).values);
axis([01e-5-0.020.18]);
xlabel('t/s');ylabel('I2/A');
title('变压器副边电流波形');
gridon;
副边波形:
全桥变换器仿真原理图:
Q1:
绘图程序:
subplot(2,1,1);
plot(Q1.time,Q1.signals
(1).values);
axis([04e-4-5005100]);
xlabel('t/s');ylabel('I/A');
title('Q1电流波形');
gridon;
subplot(2,1,2);
plot(Q1.time,Q1.signals
(2).values);
axis([04e-4-10120]);
xlabel('t/s');ylabel('U/V');
title('Q1电压波形');
gridon;
Q1电流电压波形:
Q2:
绘图程序:
subplot(2,1,1);
plot(Q2.time,Q2.signals
(1).values);
axis([04e-4-5005100]);
xlabel('t/s');ylabel('I/A');
title('Q2电流波形');
gridon;
subplot(2,1,2);
plot(Q2.time,Q2.signals
(2).values);
axis([04e-4-10120]);
xlabel('t/s');ylabel('U/V');
title('Q2电压波形');
gridon;
Q2电流电压波形:
变压器:
绘图程序:
subplot(3,1,1);
plot(qqbianyaqi.time,qqbianyaqi.signals
(1).values);
axis([04e-4-130130]);
title('变压器原边电压波形');
gridon;
subplot(3,1,2);
plot(qqbianyaqi.time,qqbianyaqi.signals
(2).values);
axis([04e-4-3030]);
title('变压器副边1电压波形');
gridon;
subplot(3,1,3);
plot(qqbianyaqi.time,qqbianyaqi.signals(3).values);
axis([04e-4-3030]);
title('变压器副边2电压波形');
gridon;
变压器原边和两个副边上的电压波形:
SPWM仿真原理图:
A点相电压电流:
绘图程序:
subplot(2,1,1);
plot(axiangdianya.time,axiangdianya.signals.values);
axis([0.0050.025-700700]);
xlabel('t/s');ylabel('U/V');
title('SPWM调制时,a点相电压波形');
gridon;
subplot(2,1,2);
plot(axiangdianliu.time,axiangdianliu.signals.values);
axis([0.0050.025-60100]);
xlabel('t/s');ylabel('I/A');
title('SPWM调制时,a点相电流波形');
gridon;
A点相电压电流波形:
傅里叶分析:
SVPWM仿真原理图:
A点相电压电流:
绘图程序:
subplot(2,1,1);
plot(svpwm.time,svpwm.signals
(1).values);
axis([0.0050.025-700700]);
xlabel('t/s');ylabel('U/V');
title('SVPWM调制时,a点相电压波形');
gridon;
subplot(2,1,2);
plot(svpwm.time,svpwm.signals
(2).values);
axis([0.0050.025-160160]);
xlabel('t/s');ylabel('I/A');
title('SVPWM调制时,a点相电流波形');
gridon;
A点相电压电流波形:
傅里叶分析: