use of conditional statement
显示 更早的评论
I have a normalized image of size 160*190.i have to decompose it to low,middle and high inetnsity.the low bound is 0.4 and high bound is 0.7.which conditional statement can give the correct ans.
采纳的回答
更多回答(1 个)
David Sanchez
2014-2-7
if (x<0.4)
...do anything
elseif (x>=0.4 | x<=0.7)
...do another thing
else % this is for x>0.7
...whatever
end
4 个评论
Sapam Jaya
2014-2-7
Walter Roberson
2014-2-7
Are you looking at the intensity of each pixel? Or are you looking for an overall intensity?
Sapam Jaya
2014-2-23
Sapam Jaya
2014-2-23
类别
在 帮助中心 和 File Exchange 中查找有关 Encryption / Cryptography 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!