필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I'm trying to simulate PV characteristics and wrote the code , but I don't know where the problem is .

조회 수: 1 (최근 30일)
Here is the code
clc;
clear all;
q = 1.602e-19;
K = 1.38065e-23;
vocr=32.9;
Iscr=8.21;
Rs=0.221;
Ki=0.0032;
Kv=-0.123;
Ns=54;
T=35+273;
Tr=25+273;
Gr=1000;
G=800;
a=1.3;
Rsh=415.405;
pg=1.12;
vtr= Ns*(K*Tr/q);
Ior= Iscr/((exp(vocr/(a*vtr)))-1);
Io= Ior*((Tr/T)^3)*exp((q*pg/(a*K))*((1/Tr)-(1/T)));
Ipvr=Iscr;
Ipv= (G/Gr)*(Ipvr+Ki*(T-Tr));
vt= Ns*(K*T/q);
I= zeros(330,1);
i=1;
I(1,1)=0;
for v=32.9:-0.05:0;
Ical= Io*(exp((v+(I(i,1)*Rs))/(vt*a))-1)+((v+(Rs*I(i,1))/Rsh));
I(i+1)= Ipv-Ical;
v1(i)=v;
p(i)=v*I(i);
i=i+1;
end
v1(i)= v1(i-1);
p(i)=p(i-1);
v1=transpose(v1);
plot(v1,I,'r')
grid on
  댓글 수: 2
John D'Errico
John D'Errico 2017년 5월 29일
Why do YOU think there is a problem? How are we supposed to guess what you think is wrong? The crystal ball is so foggy.
shrik kader
shrik kader 2017년 5월 29일
편집: shrik kader 2017년 5월 29일
John D'Errico, when I run the code, the graph is not what it suppose to be, I am still new on Matlab, so I don't know where the issue is

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by