what is meaning of
3 views (last 30 days)
Show older comments
What is meaning of
if sum(ones(size(result))-result<=0.05) == 1 && sum(result >= 0.2) == 1
[val, num] = max(result);
str = char(all_Signatures{num});
0 Comments
Answers (1)
Image Analyst
on 16 Apr 2018
It says that if there is exactly one number more than 0.95 and less than 1 to find it's value and location. Then it picks a string or number out of a cell array called num, converts it to char (which gives the ascii character if num is a number) and puts it into str.
1 Comment
Walter Roberson
on 16 Apr 2018
If there is exactly one number more than 0.95 and exactly one number greater than or equal to 0.2. That would have to be the one value greater than 0.95, but the additional check is ensuring that there is nothing from 0.2 to 0.95 .
There is no limitation that the value must be less than 1, though.
num would correspond to the position of that value that was greater than 0.95 .
See Also
Categories
Find more on Data Types in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!