Hallo

I would really like to ask for your help as I am new in Matlab.

I have a Matrix b=[5 8 10 2 3 7 8 6 3 10]

And c=2*b

What I would like to do is the following:

I would like the values of c that are greater than 7 (in this case 7 values).

From these values of c that are greater than 7 I want to keep one (any of these) equal to 7 (so reducing the value exactly to 7) by converting matrix b.

So basically I would like to transform matrix b in order to get one value of c,which is greater than 7, equal to 7 and the rest ,that are greater than 7, less than seven

I would really appreciate any help

Thank you!