Info

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

Matrix

2 visualizaciones (últimos 30 días)
sita
sita el 7 de Dic. de 2011
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi.. A=[3 4 5 6 4 3] if A(:)>5 some statement end
In above code if i want to know where that condition was true (row, column where the condition is true)..how to get it in matlab?? Please help in this regards.
thanks,, Sita

Respuestas (1)

Grzegorz Knor
Grzegorz Knor el 7 de Dic. de 2011
[row,col] = find(A>5)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by