Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

could anyone help me how to choose the minimum and maximum values equally

1 visualización (últimos 30 días)
jaah navi
jaah navi el 17 de Oct. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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)

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by