I used this code
[Ta] = TaguchiArray(3,101)
Einf=0.1;
YF =linspace(0.85,1.1,101);
PVprice =linspace(800,1600,101);
F_bank =linspace(0,5,101);
Sys_LCOE=zeros(length(F_bank),length(PVprice),length(YF));
for ii=1:1:length(YF);
for i=1:1:length(PVprice);
for jj=1:1:length(F_bank) ;
Sys_LCOE(jj,i,ii)=LCOE(F_bank(jj),Einf, PVprice(i),YF(ii));
end
end
end
can you help me to use the Taguchi array in my code, thanks.

댓글 수: 1

Einf=0.1;
YF =linspace(0.85,1.1,101);
PVprice =linspace(800,1600,101);
F_bank =linspace(0,5,101);
% Einf=linspace(0.05,0.2,16);
num_Par=[ YF; PVprice; F_bank];
[Tag_arr] = TaguchiArray(size(num_Par,2),size(num_Par,1));% taguchi array generated
for ii=1:1:length(num_Par);
for i=1:1:length(Tag_arr);
if Tag_arr(i,1)==ii;
Tag_arr(i,1)=YF(ii);
end
if Tag_arr(i,2)==ii;
Tag_arr(i,2)=PVprice(ii);
end
if Tag_arr(i,3)==ii;
Tag_arr(i,3)=F_bank(ii);
end
end
end
this is how I replaced the taguchi array with the parameter values.
but cannot figure out how to make the Sys_LCOE 3 dimentional, because when I use the parmeters in the array it becomes an array:
for j=1:1:length(Tag_arr);
F_bank1(j)=Tag_arr(j,1);
PVprice1(j)=Tag_arr(j,2);
YF1(j)=Tag_arr(j,3);
Sys_LCOE(j)=LCOE(F_bank1(j),Einf, PVprice1(j),YF1(j));
end

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

질문:

2020년 10월 9일

댓글:

2020년 10월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by