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 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by