could anyone tell me how to choose the position of the number

1 visualización (últimos 30 días)
Prabha Kumaresan
Prabha Kumaresan el 10 de Ag. de 2018
Comentada: KSSV el 10 de Ag. de 2018
could anyone tell me how to choose the position of the number
  1 comentario
Prabha Kumaresan
Prabha Kumaresan el 10 de Ag. de 2018
could anyone tell me how to choose the position of the number if there are 5 numbers in the row.

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 10 de Ag. de 2018
Read about find and logical indexing.
  2 comentarios
Prabha Kumaresan
Prabha Kumaresan el 10 de Ag. de 2018
ok.Could you also please help me to find the first number in the row(1 2 3 4 5) from left.
KSSV
KSSV el 10 de Ag. de 2018
row = [1 2 3 4 5] ;
find(row==1)

Iniciar sesión para comentar.

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by