Conditional approach in a matrix variables

1 visualización (últimos 30 días)
Tino
Tino el 9 de Mayo de 2019
Comentada: Tino el 9 de Mayo de 2019
Hi
Assuming I have the following matrices
Y = [ 4,6,8,4,3,.......n]
I want to compute a conditional statement that would go through each number and if it is greater than 10 the computation stops and if not it continues to go through
the array until the end.
Thanks for your help in advance
Regards
Tino

Respuesta aceptada

madhan ravi
madhan ravi el 9 de Mayo de 2019
find(Y>10,1,'first')

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by