I have one matrix.I want to check each elements of matrix with 4 conditions (say:each element is whether come under <0.25, 0.25 to 0.5, 0.5 to 0.75,0.75 to 1) .Then want to replace that element by 0,1,2,3 based on the conditions. the conditions are listed below.
if it is < 0.25 i want to assign 0,else 0.25 to 0.5 ,i want to assign 1.if it is 0.5 to 0.75, then i want to assign 2 and if it is 0.75 to 1 then i want assign 3.
it has to be done for each element of matrix.
can anybody give an idea
No products are associated with this question.
Play games and win prizes!Learn more