필터 지우기
필터 지우기

Info

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

store each result inspite of re write updated answer i work in main file and call function from function file store each result of values which run in function file

조회 수: 1 (최근 30일)
function [branchcu,totalpowerloss,vpu,finalloss] = loadflow1(sys,DLF,BIBC,branch,result,BCBV)
v0=(12660+1i*0).*ones(branch,1);
P=sys(:,6)*1000;
Q=sys(:,7)*1000;
v=v0;
for k=1:20
I=-conj((P+1i*Q)./v);
delta_v=DLF*I;
v=v0+delta_v;
end
v_pu=[1+1i*0;v./12660];
voltage_perUNIT=abs(v_pu)';
vpu=voltage_perUNIT'
branchcu=abs(BIBC*I)
for r=1:branch
powerloss=branchcu(r)^2*sys(r,4);
t1(r)=powerloss;
end
total_powerloss=sum(t1)
end
when i call variables in command window it shown undefine variable,,how to store each element

답변 (0개)

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by