if at least one number >

3 次查看(过去 30 天)
Tomas
Tomas 2013-11-23
评论: Tomas 2013-11-23
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by