Find the min(or max) of the 2nd row of an unknown matrix?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ammaa AlSada
el 15 de Dic. de 2018
Comentada: madhan ravi
el 16 de Dic. de 2018
matrix A(m,n)
we need to find min or max of only the 2nd row if we have a 2nd row
0 comentarios
Respuesta aceptada
madhan ravi
el 15 de Dic. de 2018
Editada: madhan ravi
el 15 de Dic. de 2018
[value,index]=max(A(2,:))
[Value,Index]=min(A(2,:))
2 comentarios
John D'Errico
el 15 de Dic. de 2018
+1. The point being to extract the second row. Then use either min or max as you wish.
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices 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!