if at least one number >

4 visualizaciones (últimos 30 días)
Tomas
Tomas el 23 de Nov. de 2013
Comentada: Tomas el 23 de Nov. de 2013
I have A=[ 11 12 17]
number=13; W={}; if (A>=number)
W{1}{1}=A;
else
A;
end
I want it so that if there was at least one number in A > as number,then A stored in cell W
Thanks

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Nov. de 2013
A=[ 11 12 17]
number=13;
W={};
if any(A>number)
W{1}=A;
end

Más respuestas (0)

Categorías

Más información sobre Construct and Work with Object Arrays 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