find value with row and column

Respuestas (1)

Voss
Voss el 20 de Feb. de 2023
matrix = magic(4)
matrix = 4×4
16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1
value = 10
value = 10
[row,column] = find(matrix == value)
row = 2
column = 3

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 20 de Feb. de 2023

Respondida:

el 20 de Feb. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by