필터 지우기
필터 지우기

I have 5 arrays (A,B,C,D,E) of size(20x1). 20 Rows represents 20 models. I want to rank best model based on minimise (A,B), maximise (C,D,E). Any hint will be helpful.

조회 수: 1 (최근 30일)
A,B,C,D,E
  댓글 수: 4
Torsten
Torsten 2023년 5월 4일
Say you have the rows [A B C D E] as
[1 -5 1 1 9]
[-7 3 1 3 7]
Which is better and why ?
Avijit Paul
Avijit Paul 2023년 5월 4일
So accoding to problem statement best (-7 -5 1 3 9). I think, we can rank [ (2 1); (1 2); (1 1); (2 1);(1 2)] . And add the ranks to get final value. Then sort the final value to get the ranking. This can be possible solution. For this case (7 7). Solution is all with equal importance . This can be one way thinking. Thats why I was asking for any help.

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

채택된 답변

Mathieu NOE
Mathieu NOE 2023년 5월 4일
maybe this ?
AB= rand(20,2);
CDE=rand(20,3);
ABinv = 1./AB; % minimum(A,B) replaced by maximum of it's inverse
ABinvCDE_max = max([ABinv CDE],[],2); % find max (rank) along direction 2
[val_sorted,rk] = sort(ABinvCDE_max);% rank = rk

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Physics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by