关于MOS损耗计算的MATLAB程序

2019-03-26 20:02发布

t=data(:,1);
V=data(:,2);
I=data(:,3);
plot(t,V,'g',t,I,'r')
title('Power Loss');
xlabel('Time (s)');ylabel('Amplitude');
legend('Voltage (V)','Current (A)');

% for j = 1:length(I);
% if (V(j)<I(j))
% start = j;
% break;
% end
% end
% int = 0;
T = t(end);
t1 = T/length(t);
% for i = start:length(I);
% if (V(i)>I(i))
% int = I(i)*T+int;
% end
% end
int1 = 0; %switching loss
for i = 1:length(I)
if (V(i)>I(i))
int1 = V(i)*I(i)*t1+int1;
end
end
result = int1/T
Psw=result*(ton+toff)

int1 = 0; %conduction loss
for i = 1:length(I)
if (I(i)>V(i))
int1 = I(i)*I(i)*0.015+int1;
end
end
result = int1;
Pcond=result*T/6

开关损耗的计算里,最后Psw为什么还要乘以ton+toff,result不就已经是P了吗?
导通损耗的计算里,0.015是什么意思,result*T/6又是怎么来的?

此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。