Borrar filtros
Borrar filtros

Question about min and max

3 visualizaciones (últimos 30 días)
ka kei yeung
ka kei yeung el 23 de Abr. de 2020
Comentada: ka kei yeung el 23 de Abr. de 2020
How can i find the min and max of the v1[1 2], and v2[3 4] without using the code of min and max
and here's my function code
function [min_max] = minMaxVectors(v1,v2)
Amin = min(v1);
Amax = max(v2);
min_max = [min(v1), max(v2)];
end
i can run by my driver code
v1 = [1 2];
v2 = [3 4];
[min_max] = minMaxVectors(v1,v2);
but how i run this code without using min and max function

Respuesta aceptada

madhan ravi
madhan ravi el 23 de Abr. de 2020
Editada: madhan ravi el 23 de Abr. de 2020
google bubblesort and choose which element satisfies your need , hint: ascending and descending

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by