Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
could anyone help me how to choose the minimum and maximum values equally
조회 수: 1 (최근 30일)
이전 댓글 표시
code:
A= [1.6992 1.5107 1.6426
2.6664 2.7159 2.7833
0.7849 0.4077 0.3900
1.0745 1.0196 1.0966
0.5537 0.6946 0.8196
1.6301 1.7238 1.6238];
C=zeros(6,1);
[value, index] = min(A,[],2)
[value1, index1] = max(A,[],2)
I want to choose one minimum index of 1,2,3 and one maximum index of 1,2,3.
I need to combine three minimum values having index 1,2,3 and three maximum values having index 1,2,3.
so in total when i use the command line C(:,1) = index
I need to have output in the following manner
1-minimum (0.5537)
1- maximum(1.6992)
2-minimum(1.0196)
2-maximum(1.7238)
3-minimum(0.3900)
3-maximum(2.7833)
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!